Readchar
From Mesham
Jump to navigationJump to search
Overview
This readchar[n] function will read a character from a file with handle n. The file handle maintains its position in the file, so after a call to read char the position pointer will be incremented.
- Pass: The file handle to read character from
- Returns: A character from the file type Char
Example
var a:=openfile["hello.txt","r"]; var u:=readchar[a]; closefile[a];