Difference between revisions of "Readline"
From Mesham
Jump to navigationJump to searchm (4 revisions imported) |
|
(No difference)
|
Latest revision as of 15:44, 15 April 2019
Overview
This readline(f) function will read a line (delimited by the new line character) from a file with handle f. The file handle maintains its position in the file, so after a call to readline the position pointer will be incremented.
Example
#include <io> function void main() { var f:=open("hello.txt","r"); var u:=readline(f); close(f); };
Since: Version 0.41b