Getting character inputs from FileReader in Java.
In java I'm thinking that using FileReader to open a file and read the contents in the right way to go, but for some reason my FileReader object's read() method only returns and int corresponding to what that character is. I need the information from a text file for the declarations of other variables. How would I go about doing this? I fiqured I'd try System.out.println()-ing the information, but again it only spits out the interger value of the characters....ANy suggestions? THank yuo very much.
|