What happens if I don't close the file, and the program exits? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What happens if I don't close the file, and the program exits?

30th Jul 2016, 10:05 PM
Marco Neumann
Marco Neumann - avatar
2 Answers
+ 1
you may not flush any of the data you have previously written
3rd Aug 2016, 1:41 AM
Null Void
Null Void - avatar
0
if your program closes it will be closed, however if your program crashes. nothing will be written.. use flush when logging !
14th Nov 2016, 11:23 AM
Edwin Martens
Edwin Martens - avatar