File.ReadWord |
Top Previous Next |
Syntax function File.ReadWord(F: pointer): integer
Alternative Names
Description Reads two bytes as a word from the given file-stream, if available, and returns it.
See also
Example execute udsblock returns (valueout varchar(1024)) as begin /* open a binary file */ fs = File.Open('c:\data\sample.dat, __fmOpenReadWrite + __fmShareDenyWrite); try /* read a 2 bytes as a word */ wval = File.ReadWord(fs); finally File.Close(fs); end end |