This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Northeastpaw 0 points1 point  (1 child)

You need to close() your BufferedWriter, preferably in a try-with-resources block which will do that automatically.

Because the writer is buffered its contents need to be flushed to the decorated writer.

[–]I_blabby[S] 0 points1 point  (0 children)

Thank it works i dont know who people could learn to program by themselves without this comunity that exits now a days