Difference between revisions of "Readchar"
From Mesham
Jump to navigationJump to searchm |
m |
||
Line 12: | Line 12: | ||
var u:=readchar(f); | var u:=readchar(f); | ||
close(f); | close(f); | ||
+ | |||
+ | ''Since: Version 0.41b'' | ||
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:IO Functions]] | [[Category:IO Functions]] |
Revision as of 18:38, 13 January 2013
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.
Example
#include <io> var f:=open("hello.txt","r"); var u:=readchar(f); close(f);
Since: Version 0.41b