My output file, not for which reason, now does not end, if left running, creates a text file with more than 1GB , just to terminate the process in the task manager on the link above is my application code, opening the file and closing but being in loop , I can not find the problem.
For more understanding see: Java - Read file and Save output in .txt