Welcome to Emulationworld

Forum Index | FAQ | New User | Login | Search

Make a New PostPrevious ThreadView All ThreadsNext ThreadShow in Flat Mode*

SubjectRe: Ok, a plea for help (Java) Reply to this message
Posted byMitaine
Posted on01/08/04 03:07 PM

I haven't done any programming in 3 years but according to sun's java API spec (http://java.sun.com/j2se/1.4.2/docs/api/), in the DataInputStream class description (http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html) :

String readLine()
Deprecated. This method does not properly convert bytes to characters. As of JDK 1.1, the preferred way to read lines of text is via the BufferedReader.readLine() method. Programs that use the DataInputStream class to read lines can be converted to use the BufferedReader class by replacing code of the form:
DataInputStream d = new DataInputStream(in);
BufferedReader d
= new BufferedReader(new InputStreamReader(in));

voilą (?)

Entire Thread
Subject  Posted byPosted On
*Ok, a plea for help (Java)  LordEvilElmo01/02/04 07:59 AM
..Re: Ok, a plea for help (Java)  Mitaine01/08/04 03:07 PM
..*That worked :) Thank you! -nt-  LordEvilElmo01/08/04 03:47 PM
.*Here is the data file contents  LordEvilElmo01/02/04 08:01 AM