Readchar

From Mesham
Revision as of 15:44, 15 April 2019 by Polas (talk | contribs) (5 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Overview

This readchar(f) function will read a character from a file with handle f. 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

#include <io>

function void main() {
   var f:=open("hello.txt","r");
   var u:=readchar(f);
   close(f); 
};

Since: Version 0.41b