Contec CONPROSYS nano CPSN-PCB271-S1-041 Reference Manual page 111

Table of Contents

Advertisement

 CFA_FileGetLine
Operating functions
This reads one line in strings from a file.
The read carriage return will be deleted.
Input value
Name
hFile
pszString
szSring
Output value
Name
eError
szSize
 CFA_FilePutLine
Operating functions
This writes a string to a file.
A carriage return will be automatically added at the end of the string.
Input value
Name
hFile
pszString
Output value
Name
eError
Programing with CODESYS
CPSN-PCB271-S1-041 Reference Manual (Software)
Data type
DWORD
This specifies a handle number of the file.
POINTOR TO
This specifies an address of the area to store data that are read.
STRING
WORD
This specifies a size of the area to store strings.
szString - 1 is the number of maximum characters.
Specify a sufficient size to include carriage return.
Data type
ERROR
This indicates an error code.
WORD
This indicates the string size that are read.
Data type
Meaning
DWORD
This specifies a handle number of the file.
POINTOR TO
This specifies an address to write a string.
STRING
Data type
ERROR
This indicates an error code.
— 111 —
Meaning
Meaning
Meaning

Advertisement

Table of Contents
loading

Table of Contents