Reads data from a file and converts the data to a 2D integer array.
This node reads a spreadsheet or spreadsheet file saved in text format. This node opens and closes the file as part of the read operation.
A string that uses format specifiers to determine how to convert the data to characters. Examples:
Default: %d — converts the data to integer form using as many characters as necessary to contain the entire number
The file that this node reads.
The node opens the specified file without requiring you to call Open/Create/Replace File first.
Default: No value — Displays a file dialog box that prompts you to select a file.
Maximum number of lines the node reads. A line is a string ending with a carriage return, linefeed, or a carriage return followed by a linefeed; a string ending at the end of file; or a string that has the maximum line length specified by the maximum characters per line input. If this input is less than 0, the node reads the entire file.
Default: -1 — reads the whole file
Position in the file, measured in bytes, at which the node 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 this input to 57.
Maximum number of bytes the node reads before ending the search for the end of a line.
Default: 0 — no limit on the number of characters the node reads
A character or string of characters used to separate fields in the spreadsheet text. For example, a value of , (comma) specifies a single comma as the delimiter.
Default: \t — single tab character
Path to the file.
Array containing each row of data read from the file.
Array containing the first row of data read from the file.
Location of the file mark after the node runs. The mark points to the byte following the last byte read.
Where This Node Can Run:
Desktop OS: Windows
FPGA: All devices (only within an Optimized FPGA VI)