My computer crashed and I lost my text file!

I was working hard on a text file. My computer crashed and, on rebooting, the text file was empty (zero bytes). It had contents before and I saved the file just a few minutes before the crash but now all seems to be gone. How is this possible? It seems that I have lost a lot of work. Is there anything I can try to see if the contents are available somewhere? How can I prevent this from happening again? It seem like a big reliability problem. Is this normal? What can be the cause of such a thing?

Thank you for any suggestion. I’m really disappointed because of this :frowning: