Reg the shakespeare.txt file in NLP course 2 week 1

I lost the data present in the shakespeare.txt file while doing the assignment when I opened the file in write mode rather than in read mode. So the data in it got erased. So, can anyone please help me out here with how to retrieve the data back…
Thank you in Advance…

I guess you can always reset the assignment:

https://www.coursera.support/s/article/360004995312-Solve-problems-with-Jupyter-Notebooks?language=en_US

Got it sorted… Thank you so much for the reply…