Readchar Function

Next: , Previous: Print, Index: Index

This readchar[n] function will read a character from a file with handle n.

Pass: The file handle to read character from
Returns: A character from the file type Char

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

Examples

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


Last Modified: August 2008