LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read a data file combining strings and data

Solved!
Go to solution

I now just got stucked with the new line "\n" match. If I just use "---...---", I got all I need seperated but for the element 1, element 2 and the array, I got a blank line at the begining. I tried all the ways with "\n" but had no luck. I also tried "\r", "\t", no success.

 

By the way, the sample file I'm using is the one I edit by notebook. That means the newlines in the file is exactly the cause of hitting the return key on the keyboard. Will that cause any problem in the matching?

 

Thank you.

 

Richard

0 Kudos
Message 11 of 13
(593 Views)

I got it!

I looked at the newline in my string indicator in "\" display mode. The newline turned out to be a "\t\r\n ". When I used "-----------...-------\t\r\n" as the search term, I got everythig right in the right place! Thank you very much, Darin.

 

Richard

0 Kudos
Message 12 of 13
(587 Views)

I simply copy and pasted the text from your original post and it works fine.  If you haven't already, you should put the raw string into an indicator and turn on '\ code display'.  This should tell you what the newline character is.  Or, just use the Trim Whitespace VI on those strings and chop it off.

 

Edit:  I see you figured this one out yourself.

Message Edited by Darin.K on 10-02-2009 07:15 PM
0 Kudos
Message 13 of 13
(584 Views)