Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Process a line with more than 199 words

Status
Not open for further replies.

mlkf

Programmer
May 30, 1999
1
0
0
US
How can I work with lines that have more than 199 words?<br>
I got an error: Line 1 cannot have more than 199 fields.<br>
I tried to change FS but it did not help? any suggestion?
 
I don't know if this a solution that you are looking for but one option is to change RS to space and then manually check for and track you newlines. So that each word will be a record and can be written back out in equivalent line sizes, (I believe...speculation), by setting ORS to space and manually writing out newlines in the appropriate place based on where you found them on the input. I must admit, (warn), that I have done something similar but not precisely this, so, as I mentioned above, this is speculation. I will test this but not for a couple of days, sorry.<br>
<br>
Good luck...<br>
Murray
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top