So I want to learn how to do a simple I/O to and from a file.
I want the simplest way to do this.
My teacher sent me her program but I don't think I get what she is doing and it's giving me an error. So I would also like to clarify a term - Tokenizer.
Also, how do I read multiple lines? or find out how many lines are there in a file which are not blank?
And if the input is separated by white space, how do I get each one into a separate variable?
My input: ABC 13 DEF 14 15 LJK
So how would I get ABC in one string, 13 in an int and so on and so forth...
If this makes a difference (and most of the time, it may), I am using Java SDK 1.4.1 (since that is what our school is using -.- )
Any help is appreciated :) thanks