Hi there. I am using a StreamTokenizer to parse a data file, containing multiple entries which look like this:
Things are working OK, until I get to any entry which has it's value spread over multiple lines. The StreamTokenizer will tokenize from a quote character (") to either another quote character or an end of line - and this is the problem. I have tried removing any newline characters from the source document in a preprocessing stage, but this did not work too well. Any ideas?
<B>daniel.walker</B><BR><I>***bleed in your own light...<BR>...dream of your own life...***</I>
Dale DeMott
Ranch Hand
Joined: Nov 02, 2000
Posts: 512
posted
0
Are you reading in 1 line at a time? What are you removing from your string?? is it \n or \r?? -Dale
By failing to prepare, you are preparing to fail.<br />Benjamin Franklin (1706 - 1790)