Rodney Posted September 20, 2017 Share Posted September 20, 2017 Is there a way to write an array out so it skips the 1st line(it holds the headings) As per the user guide you can do it when you read the file by File.Read(handle) below File.ReadDelim(handle, index, parse by, eol character, number of lines, [string]): This function allows the rapid reading of a delimited file such as the common files generated by DAQFactory logging sets. Parsing begins at the current file location, so if you have a header line, simply do File.Read(handle) to read the first line, putting the file location at the beginning of the second lineI can skip the 1st line in read is there an equivalent for File.writeDelim ie set the pointer at the start of line 2 before writing the data? Rodney Link to comment Share on other sites More sharing options...
AzeoTech Posted September 22, 2017 Share Posted September 22, 2017 Sure, just do File.Write() to write out your first line before you do writeDelim(). If the file already exists and has a header, just make sure an open the file with the append flag set to 1. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.