Java does not end txt file, generates txt more than 100MB

0

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

    
asked by anonymous 02.03.2018 / 20:23

1 answer

0

Note that in the response of the other question the snippet that writes the information has a "// omitted" comment because it was to merge with your code. In that section if you remove the command to read new line it will not follow in the file and will stay in loop.

    
02.03.2018 / 20:30