Readline

From Mesham
Revision as of 13:12, 13 January 2013 by Polas (talk | contribs)
Jump to navigationJump to search

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.

  • Pass: The File handle to read the line from
  • Returns: A line of the file type String

Example

#include <io>
var f:=open("hello.txt","r");
var u:=readline(f);
close(f);