04-01-2004 01:03 PM
04-01-2004 03:18 PM
04-02-2004 07:20 AM
04-02-2004 01:13 PM
04-02-2004 02:31 PM
10-18-2011 02:31 AM
Hi,
I want read a particular line in a text file till the end of the line. So what i did is
I used read from text file fn and I gave '-1' to read entire file then I use string subset and gave offset value to tell where I want to start and for the length I dont want to specify how many characters to read instaed I want to give fetch till end of the line. []Can any one tell if u know
Thanks in advance
--saamy
10-18-2011 02:36 AM - edited 10-18-2011 02:36 AM
Hi saamy,
is this question strictly related to the original one? In particular, are you still stuck to CVI5 or are you using a more recent release? If not, I would suggest that you start a new thread instead of appending questions to an old one.
With relation to your question, I suggest you to use functions in the Formatting and I/O Library, particularly ReadLine (): using it in a loop till EOF permits you to read the file line-by-line without problems.
10-18-2011 02:37 AM
What about CopyString (, , "", , ) ?
The last parameter Maximum # Bytes specifies the maximum number of bytes, excluding the ASCII NUL, to copy into the target. If you do not want to specify a maximum number of bytes to copy, use –1 for maximum#Bytes.
10-18-2011 02:41 AM
sorry Roberto, I know its not related to original one...anyway I will create new thread. Thanks a lot Roberto Bozzolo
10-18-2011 03:15 AM
Hi Wolfgang, I think copystring wont work. I want read a particular line (with start position and till end of the line(single particular line))from a text file which is having so many lines.