I have written a I/O code wherein the I/O is done using
The File which I am reading from contains large no. of records.Each records contains a few columns. On reading the records and am modifying them and writing them to the Output file. I am using while loop for reading each record.
The problem arises for the last record. When writing the last record into the output file, only few columns get written. The entire last record isnt written. This causes problems when i want to read this output file as the last record is not complete.
I am also closing the BufferedWriter using bw.close();
Please help in explaining why only the last record isnt being completely written.
Thanks in advance