
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>name:</b> <b>_newline() - specify character that terminates lines</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Name: _newline() - specify character that terminates lines
Usage: _newline(<char>)
Params: integer <char> - the ascii value of the character
that is to be used as the line terminator character
when reading lines of text with freadline(), frewind(),
fbol() or fadvance()
Returns: nothing
---------------------------------- Example ---------------------------------
_newline(asc(":"))
handle = fopen("MERGE.TXT")
freadline(handle)
* reads in lines of text that terminate in
* a semicolon. Linefeeds and carriage returns
* are ignored. The semicolon can appear
* anywhere in the text and it will be considered
* the end of the line even if it is not the last
* character on the line
_newline(0)
* resets the newline character to a
* chr(13)+chr(10)
Note: This function is primarily for use with programs
that do not put a chr(13)+chr(10) newline character
on the end of lines in a text file. Certain compilers
only use a chr(13) or a chr(10) to delimit lines
of text. This function affects freadline(), fadvance()
fbol(), frewind().
See Also: freadline() fbol() frewind() fadvance()
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson