StreamTokenizer help
I'm stuck with a program that I've been writing, and hopefully someone will be able to help.
I'm currently reading a textfile into the program. The textfile format looks somewhat like this:
AA-AAA-ABC-11
AA 11 213 874D
11-A
A B
11 A
What I'm trying to do is to parse the file, and create an array of strings from it, one for each line. I've set the eolIsSignificant field to true, indicating that that should be the end of a string. But is there a way to read an entire line as a single token? One that isn't broken up into words, numbers, etc? Or if that can't be done, can i "force" any token that isn't an EOL to be considered a word?
I'm currently reading a textfile into the program. The textfile format looks somewhat like this:
AA-AAA-ABC-11
AA 11 213 874D
11-A
A B
11 A
What I'm trying to do is to parse the file, and create an array of strings from it, one for each line. I've set the eolIsSignificant field to true, indicating that that should be the end of a string. But is there a way to read an entire line as a single token? One that isn't broken up into words, numbers, etc? Or if that can't be done, can i "force" any token that isn't an EOL to be considered a word?
