Readline

From Mesham

Jump to: navigation, 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];
Personal tools