| Author |
BufferedWriter error
|
Amar Naik
Ranch Hand
Joined: Sep 26, 2003
Posts: 43
|
|
the output of SQL query is around 19254 rows. But my below code writes only 18700 lines to o/p file. Sometimes the o/p file as 18900 rows. No idea why the file write is having error. It does not even throw any exception
|
 |
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2341
|
|
|
Anytime you write output to a file through a stream, make sure you close the stream when you are finished writing.
|
 |
Amar Naik
Ranch Hand
Joined: Sep 26, 2003
Posts: 43
|
|
|
thanks. It solved the problem
|
 |
 |
|
|
subject: BufferedWriter error
|
|
|