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
posted 10 years ago
Anytime you write output to a file through a stream, make sure you close the stream when you are finished writing.