Hello to every one..

I have another question, If i write my code, as:

line = BbmReader.getFileReader("input.txt").readLine();
StringTokenizer tokens = new StringTokenizer(line); 
while (tokens.hasMoreTokens()) { 
     System.out.println(tokens.nextToken()); 
}

then it shows the tokens of only first line of file. How can i make it to go to the next lines?

Thank you all..

Ezzaral commented: This is not getting you anywhere. -1

Recommended Answers

All 2 Replies

This is your third thread on the exact same issue and this has been answered in the other two already.

Thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.