06-30-2010 04:13 AM
02-03-2012 10:01 AM
I just stripped this version into a simpe verison.
06-12-2013 04:22 AM - edited 06-12-2013 04:24 AM
Hello all,
I have large file (>2GB). I don’t want to spilt the file into small text files, But I want to read the complete text file in LV.
Because, If I’m splitting the file into small files then I’m not getting proper data( e.g. at 98th row my data is “.005903 1 498 Rx d 8 16 100 0 156 0 30 2 139” so in 1st file my data is storing up to “.005903 1 498 Rx d 8 16 100 “ and remaining data “0 156 0 30 2 139” in other file).
Please tell me any possible ideas.
Thank you in advance,
Guru
06-12-2013 09:11 AM
It appears that you are reading blocks which may not always end at the end of a row. If the rows end with a carriage return or linefeed character, just check the end of the block you read for that character. If the last character is not the end of line character, go back until you find the end of line. Save any characters after the end of line and prepend them to the next block when you read it.
Lynn
06-12-2013 10:30 AM
You say rows. Do you mean actual lines in a raw text file? If so, just read by line. You can right-click on the Read Text File and choose an option to read lines instead of characters. Read X lines and write them to a text file. Repeat until you get an End of File error.
06-12-2013 08:13 PM
Hai all,
Thank you so much for your replies.
Yes, your right .. But i dont want to split the raw file... i want to read the total raw file into line by line.
please let me know any other solution.
Thanks & Regards,
Guru
06-12-2013 08:41 PM
Munna232 wrote:i want to read the total raw file into line by line.
Then as I already suggested, use the Read Text File with the read lines option. You specifiy how many lines you want to read (even if it is just one). You can do with the data whatever you want.