boyracer38 Posted October 23, 2004 Report Share Posted October 23, 2004 I want to read data from a text file. The text file consists of data set out in lines, as below: Sat 23/10/2004 The coordinates (64.822, 1.770) were recorded at 23/10/2004 21:25:48 I'm then using a scan from string function in order to extract the coordinate pairs 64.822, 1.770 into an array... The read from file works fine, its gettin the data into the array which is causin problems. It should read the coordinates from each line, extracting the cordinates to an array. I can get the scan from string to add the coordinates from the 1st line of the file into the array, but it doesnt seem to be moving onto the next line of the file? I'm quite new to this lab view thing. ANy help? Regards Quote Link to comment
boyracer38 Posted October 23, 2004 Author Report Share Posted October 23, 2004 I sorted it myself in the end. :thumbup: I used a for loop and a 'pick line' function to read each individual line at a time from the file. Sweet Its really simple now, but i didnt know about the 'pick line' function lol. Does anyone know of a different solution, without using pick line?? Thanks Quote Link to comment
proximableu Posted October 24, 2004 Report Share Posted October 24, 2004 That what you meant?Peak line will give you possibility to get a pair randomly, and not resource consuming in a case of long files, but this one could work fine, if file is not too long./proximableu Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.