REALLY sorry to hear that scrimper, MOST disheartening.
But as bodgerbaz has already said, MAYBE all is not lost. There are several possibilities, for example:
1. For the text, were you using a word processor such as MS Word? If so there's a strong chance that all but the last X minutes that you wrote will still be there on your PC hard drive as a backup file - if the automatic backup setting was set. The file should show as whatever the title you gave the original text file plus the 3 letter code "dot bkp". You may have to do a search of your hard drive to find it, but if you set up the search parameters for the original file title, the date of the last time you used that file, plus "dot star" it should come up, leaving the you with all you previously wrote except the last X minutes. Then you open that file, change its name to "original name plus dot doc" (or "dot docx", if your word program is a newer version than mine) and off you go again. BTW, it's worth while going into the options menu of Word and setting the auto back up setting to "every 10 minutes" or whatever the shortest time limit is to avoid too much re-work if that ever happens again;
2. Depending on whatever OS you're using, the chances are that your PC is automatically backing everything up, typically weekly, again meaning that the file is still there on your hard drive, though with more re-typing to do because typically, auto back up for the whole hard drive is factory set for weekly;
3. Again depending on your OS, you should have some sort of "system restore" possibility (or some similar name). Find that, set your PC to go back to the last restore point that was automatically set by your PC, follow the instructions to get back to that last restore time/date and "hey presto" there's your text file.
From the above, it'll be clear that I'm a LONG way from being PC savvy, and that only stuff I know anything at all about is about MS Word and MS Windows XP and 7 (and then, not all that much really).
But there's clearly a lot of PC expertise among members here, so if someone with better knowledge than me doesn't come along within a short time I suggest you put an urgent plea for help on to the "Off Topic" section.
HTH, and best of luck
AES