Python Forum

Full Version: My file was empty at once
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi

i work by pytho3.6
I was writing code that turned off my laptop.When I turned it on, all my code was cleared and my file was empty.
Still my file is the same size but empty.
please help me Sad Sad Sad
you did not save the code to a file?
Are you looking the the right directory?
Quote:I was writing code that turned off my laptop
How is this possible? Show us your code that does this.
(Sep-12-2019, 09:29 PM)Axel_Erfurt Wrote: [ -> ]you did not save the code to a file?

i save file before.i am completing my code

(Sep-12-2019, 09:29 PM)woooee Wrote: [ -> ]Are you looking the the right directory?
Quote:I was writing code that turned off my laptop
How is this possible? Show us your code that does this.
my file is empty.after shut down my laptop my file is empty
(Sep-12-2019, 09:11 PM)smnfouladi Wrote: [ -> ]hi i work by pytho3.6 I was writing code that turned off my laptop.When I turned it on, all my code was cleared and my file was empty. Still my file is the same size but empty. please help me Sad Sad Sad

this problem solved.in my computer save a backup file by .pyc format and i convert it to .py by online site.
https://python-decompiler.com/