Empty file | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Empty file

when I opened a file (it only happens to one as I can tell) it was completely empty although the file size is 32KB (the actual size of the file) and It had been saved before with code in it. do I just go back to the latest version of the program before the empty file and continue from there, is it because of it's size or is it a python bug?

31st Mar 2018, 12:41 PM
error505
3 Answers
+ 10
It's because of override, you probably tried to open file multiple times, opened with wrong flag or tried to write to it from multiple areas simultaneously.
31st Mar 2018, 12:58 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 10
Unfortunately i havent found a solution to that too... °_°"
31st Mar 2018, 4:42 PM
Valen.H. ~
Valen.H. ~ - avatar
0
anyway to fix it? or do I just continue from the latest version of the file? (I have multiple versions of the program as different files)
31st Mar 2018, 4:35 PM
error505