0

Weeks ago, I used Python to write a txt file (xyz.txt) onto disk, then manually added some content to the file (using a text editor). Today I accidently rerun the code block so all contents I added are missing. Is it possible to recover the file?

The code I use is as follows:

with open("xyz.txt", "w") as file:
    for line in data_list:
        file.write(f"{line}\n")

No timemachine backup. No icloud backup. I tried DiskDrill but it can not find the previous version that contained my manually added contents.

I am working on a Macbook pro laptop.

Eric Z
  • 1

0 Answers0