Readline Function

Next: , Previous: Readchar, Index: Index

This readline[n] function will read a line from a file with handle n.

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

The file handle maintains its position in the file, so after a call to readline the position pointer will be incremented.

Examples

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


Last Modified: August 2008