01:32 am - zewrestler - File reading Hey,I am using a FileReader class and LineNumberReader class in order to read lines straight from a data file i created. Currently my code reads as follows:-----------------------------try{ //read from file. FileReader inputFile = new FileReader(filename); LineNumberReader reader = new LineNumberReader(inputFile); String name, gender, FFTID, age, balance; while(reader.readLine()){ name = reader.readLine(); age = reader.readLine(); FFTID = reader.readLine(); balance = reader.readLine(); gender = reader.readLine(); } } catch(IOException e) { System.out.println("error reading file"); }-----------------------------What I want to figure out is how to tell when i reach the EOF and how to get the segment to loop so i can read multiple instances of the class from the file. Thanks in advance.ZeWrestler
08:42 pm - _benbenben_ - I’m having a real hard time figuring out j2me. I’ve downloaded and installed the J2ME Tool Kit called KToolBar and I’ve purchased a book with some sample code.I’ve got .class, .java, .jad, and .jar files swarming around and I’m having trouble putting all the pieces together into one complied app. My test app is the classic “Hello World” and I could just send the .jar to my phone and that works but I’d like to compile and run my own with some modifications..I have the .class, .java, .jad, .jar for the Hello World where and what files do I need to recreate the .jar file that has been already complied for me.Thanks.