Skip to main content

total beginer help

1 reply [Last post]
eyesuckathis
Offline
Joined: 2006-02-17

Hi...I am trying to read a text file that contains this

23 45
S
34 56

the first and third line are easy to figure out using tokenizer, but the second line containing 1 char is driving me nuts...

I have to output this to a text file as well....any help would be GREATLY appreciated!!thank you

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jan
Offline
Joined: 2003-06-05

I seems rather eay to me :

first test if there are still tokens, then read the token :

if(T.hasMoreTokens){
test = T.nextToken();
//do something

}