Readline

From Mesham
Revision as of 22:26, 10 January 2010 by Polas (talk | contribs) (Created page with '== Overview == This readline[n] function will read a line from a file with handle ''n''. The file handle maintains its position in the file, so after a call to readline the posi…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview

This readline[n] function will read a line from a file with handle n. 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

var a:=openfile["hello.txt","r"];
var u:=readline[a];
closefile[a];