Hi there,
I have a DataInputStream object (code below). The code works great but I get a warning message below the code: dis.readLine()
The method readLine() from the type DataInputStream is deprecated
does anyone have an alternative to eliminate the warning?
DataInputStream dis = null;
String line = null;
//read
File f = new File(inputFolder+"/"+inputFileName);
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
dis = new DataInputStream(bis);
.
.
.
while ( (line=dis.readLine()) != null )
{
}