File close | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

File close

What happens when a file is not closed or improperly closed?? Thanks in advance.

11th Jun 2017, 3:16 PM
Rajkamal A V K
Rajkamal A V K - avatar
1 Answer
+ 1
Your app will use more memory, since the file will still be opened and be in RAM. At times, this can cause memory leaks.
11th Jun 2017, 4:54 PM
Hassie
Hassie - avatar