Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My file was empty at once
#1
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
Reply
#2
you did not save the code to a file?
Reply
#3
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.
Reply
#4
(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
Reply
#5
(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/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Cursor write 3rd file empty paulo79 3 1,826 Mar-10-2022, 02:51 PM
Last Post: DeaD_EyE
  empty json file error mcmxl22 1 9,980 Jun-17-2020, 10:20 AM
Last Post: buran
  I created a function that generate a list but the list is empty in a new .py file mrhopeedu 2 2,246 Oct-12-2019, 08:02 PM
Last Post: mrhopeedu
  How to remove empty struct from matlab file in python? python_newbie09 0 2,353 Jun-25-2019, 12:13 PM
Last Post: python_newbie09
  Avoiding empty line in writing process csv file go127a 4 9,635 May-10-2019, 01:33 PM
Last Post: go127a

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020