12-09-2005 06:25 PM
12-09-2005 09:47 PM
Hi,
Here's how you can go about doing it ...isn't it better to teach how to fish rather than providing a fish?
1. Read the contents fo the file. You can either read-in the entire file as one big string, or can read one line at a time. There are VIs in the File I/O palette for doing both.
2. Check each line for the first two characters. There are functions in the String palette for doing this.
3. If they are forward-slashes, ignore the line. And go to the next one. (If you read the file contents as a single character, you can use the newline character "\n" to know where the line ends).
Hope this gest you started. Maybe you can post your VI if you run into some difficulties.
-Khalid
12-13-2005 03:36 PM
thanks but it is not helpful.
I can not find the right functions to do so.
Actually before I posted I have tried to do it using Scan Scan From String . The format string is not working.
and the help of the Labview is too less information .
Anybody can help me ?
Scans the input string and converts the string according to format string. Use this function when you know the exact format of the input text. Alternatively, you can use the Scan From File function to scan text from a file. The connector pane displays the default data types for this polymorphic function. Details
12-13-2005 05:17 PM - edited 12-13-2005 05:17 PM
Message Edited by altenbach on 12-13-2005 03:31 PM
12-13-2005 05:30 PM
12-13-2005 11:38 PM