Readchar

From Mesham
Revision as of 22:25, 10 January 2010 by Polas (talk | contribs) (Created page with '== 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 th…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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];