My file contains very long lines (about 913434 characters per line).
FileInputStream inStream=new FileInputStream(inFile);
DataInputStream inDataStream=new DataInputStream(inStream);
BufferedReader br=new BufferedReader(new InputStreamReader(inDataStream));
String str=null;
while ((str = br.readLine()) !=null){
System.out.println(str);
}
But it's always give some portion of line . It's failed to read whole line.
Please , help me on How to read whole line ?
Thanks,
This post has been edited by smohd: 07 November 2011 - 03:45 AM
Reason for edit:: code tags added

New Topic/Question
Reply



MultiQuote





|