Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

FileReadLn

  • Last UpdatedJul 18, 2023
  • 1 minute read

Reads a line from a file. Up to 255 characters can be returned. The carriage return and newline characters are not returned. If the line is longer than 255 characters, the error overflow (code 275) is returned - you should call this function again to read the rest of the line.

Syntax

FileReadLn(File)

File:

The file number.

Return Value

The text, as a string.

FileOpen, FileClose, FileRead

Example

sLine = FileReadLn(hFile);

! do stuff with the string

WHILE IsError() = 275 DO

! read the rest of the line

sLine = FileReadLn(hFile);

! do stuff with the rest of the line

END

See Also

File Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in