B&B Electronics VFG3000 - Manual User Manual
Page 333
Advertising

F
UNCTION
R
EFERENCE
R
EAD
F
ILE
(
FILE
,
CHARS
)
R
EVISION
1
P
AGE
317
R
EAD
F
ILE
(
FILE
,
CHARS
)
A
RGUMENT
T
YPE
D
ESCRIPTION
file
int
File handle as required by OpenFile.
chars
int
Number of characters to be read.
D
ESCRIPTION
Reads a string up to 512 characters in length from the specified file. This function does not
look for a line feed and carriage return therefore allowing line read of more than 510
characters (
ReadFileLine()
limit).
If a file as multiple lines, the string returned by
ReadFile()
will be as many lines as required
to reach the number of characters to be read. Line feed and carriage return will be part of the
returned string.
F
UNCTION
T
YPE
This function is active.
R
ETURN
T
YPE
cstring.
E
XAMPLE
Text := ReadFile(hFile, 80)
Advertising