I have a Java program that reads some text from a file, line by line, and writes new text to an output file. But not all the text I write to my BufferedWriter a
BufferedWriter
you dint close your BufferedWriter.close it inside a finally block
finally { out.close();//this would resolve the issue }
This works. I have faced the same issue and this worked for me..Good Luck :)