02-18-2007 04:33 PM
02-18-2007 06:13 PM - edited 02-18-2007 06:13 PM
Message Edited by pallen on 02-18-2007 07:14 PM
02-18-2007 06:17 PM - edited 02-18-2007 06:17 PM
2... Use FILE I/O - ADVANCED - EOF to get the EOF of the file.
3... Enter a WHILE LOOP.
4... Within the loop, Use FILE I/O - READ FILE, with the refnum as an input, and wired LINE MODE to a TRUE constant.
5... Display the string out of READ FILE.
6... Wait a while, just for visual effect, if you want to.
7... Compare the OFFSET out of the READ FILE to the EOF from step 2.
8... If OFFSET is >= EOF, terminate the loop.
9... Close the file.
Message Edited by CoastalMaineBird on 02-18-2007 06:18 PM
03-01-2007 05:33 PM
I was looking at the post above this one and was just wondering how to use and where to find the FILE I/O - ADVANCED- EOF function. Also, what would need to be to keep track of the offset to compare it with this EOF?
03-01-2007 08:53 PM - edited 03-01-2007 08:53 PM
Maybe they've moved it for later LabVIEW, but I was referring to the ADVANCED palette under the FILE I/O palette.
Message Edited by CoastalMaineBird on 03-01-2007 08:54 PM
03-03-2007 06:04 PM
03-04-2007 09:34 AM
03-04-2007 10:21 AM
03-04-2007 11:26 AM - edited 03-04-2007 11:26 AM
03-04-2007 04:12 PM
Thanks a lot for your replies. I had 2 questions about the solution above. Do I have it right that the entire file is being read at one go? Also, intitially your 20 element array is initialized with 0A? Where exactly during the execution is the 0A lost so that it does not appear on the screen when text is being displayed? Also, where exactly in the flow is the whole file that has been read broken up into lines so that the text to be displayed can be identified in each line and then replace an element in the other array with the same size. What I mean is the how is the text file that you have read broken up into lines so that pattern matching ( regular expressions) can be done for each line now that you have introduced the fact that all the lines have been read from the text file as one big chunk?