LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileToArray

I'm trying to use FileToArray (by colums) on a File that has a header.

Text in Header bla bla bla
More Text in Header bla bla bla bla bla
1.1 2.2 3.3 4.4
5.5 6.6 7.7 8.8

Is there a way to point FileToArray to a certain position in a file before it writes the data to an array? As it is, FileToArray reads in the file, but not in colums as it should.

Thanks,
SRB
0 Kudos
Message 1 of 2
(2,964 Views)
No, the FileToArray function is designed to work with files that only have array data in them (primarily with files generated by ArrayToFile) as a shortcut for dumping and retrieving array data quickly to a file.

If you have a richer file format than that, you need to use the normal Scan functions (ScanFile) with format statements to read in the data.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,964 Views)