EnterDownload
Member
Hello
I am using codesys v3.5.
I am using the CAA File library to read/write lines of text from a file stored on my Festo PLC.
I have found out how to read 1 line of text from my text file.
But how do I read the next set of lines within the text file separately until the end of file is reached?
Example:
Read line 1
Read line 2
Read line 3
Read line 4
End of File
I know I would normally put the code in a "Repeat" loop until end of file ...but what should the code look like to read all lines until all lines have been read or End of File?
thanks
Jay
I am using codesys v3.5.
I am using the CAA File library to read/write lines of text from a file stored on my Festo PLC.
I have found out how to read 1 line of text from my text file.
But how do I read the next set of lines within the text file separately until the end of file is reached?
Example:
Read line 1
Read line 2
Read line 3
Read line 4
End of File
I know I would normally put the code in a "Repeat" loop until end of file ...but what should the code look like to read all lines until all lines have been read or End of File?
thanks
Jay