05-09-2007 05:13 AM
05-09-2007 06:00 AM
If your data file is huge, ignore this one. If not, then consider reading the whole file as a single string (forget the spreadsheet format for a moment). Something like:
L = Get EOF (File Refnum); S = Read File (File Refnum, #bytes = L); // read whole file StartPoint = Search String(S, "DATA"); EndPoint = Search String (S, "END") DataString = Substring(S,StartPoint, EndPoint - StartPoint) SpreadsheetStringToArray(DataString);In other words, extract just the portion you want, and THEN convert to a 2-D array.
You are parsing out the line yourself. SpreadsheetStringToArray will do that for you in a cleaner manner.
Blog for (mostly LabVIEW) programmers: Tips And Tricks