First, thanks for the responses. I really appreciate the help.
So I've been fiddling with it, and both read and readline bring in 50 bytes at a time as described (I can get that part working). However, all of the data I need will be within the first 100 characters (was using 50 before just to get the hang of it).
Right now using read and readline I am grabbing the first 100 characters, then the next 100 characters, which either grabs text from the same line, or it can grab text from the next line. Would there be a way to grab the first 100 characters of a line, then move onto the next line ignoring everything after the first 100 characters of that line? Basically truly only looking at the first 100 characters of each line?
For example, here are the first 100 characters of the text file I am looking at (for the line I want):
{|2013-11-26_11.50.21|LOGIN|1384639152462.653|ATOMIC|2013-11-26_11.50.21|#|default|(nameRedacted)|B0+9D+B
All the data I want is within the first 100 characters. I just need to grab the date and name of the person for every line containing LOGIN.
Other lines of the text file contain non-login information, and I don't need any of that info so I need to search for lines that contain LOGIN within the first 100 characters (parse it and grab data) and ignore any line not containing it.
In reply to Re^4: Out of Memory - Line of TXT too large
by MajinMalak
in thread Out of Memory - Line of TXT too large
by MajinMalak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |