Reads a specified number of lines from a byte stream file beginning at a specified character offset. The VI opens the file before reading from it and closes it afterwards.
![]() |
If convert eol? is TRUE, LabVIEW converts all end of line markers it reads into LabVIEW end of line markers.
If convert eol? is FALSE (default), LabVIEW does not convert the end of line markers it reads.
The system-specific end of line marker is a carriage return followed by a line feed on Windows, a carriage return on Macintosh, and a line feed on UNIX. The LabVIEW end of line marker is a line feed. |
![]() |
file path is the path name of the file. If file path is empty (default) or is Not A Path, the VI displays a dialog box from which you can select a file. Error 43 occurs if you cancel the dialog box. |
![]() |
number of lines is the maximum number of characters the VI reads. The VI reads fewer characters if it reaches the end of file first. If number of lines is <0, the VI reads the entire file. The default is 1. |
![]() |
start of read offset is the position in the file, measured in characters (or bytes), at which the VI begins reading. The offset unit is bytes rather than numbers because byte stream files can contain segments of different types of data. Therefore, to read an array of 100 numbers that follows a header of 57 characters, set start of read offset to 57. |
![]() |
[max characters per line] is the maximum number of characters the VI reads before ending the search for the end of a line. The default is 0, which means that there is no limit to the number of characters the VI reads. |
![]() |
new file path returns the path to the waveform file. |
![]() |
line string is the data read from the file. |
![]() |
mark after read is the location of the file mark after the read. It points to the character (byte) in the file following the last character read. |
![]() |
EOF? is TRUE if you attempt to read past the end of file. |