6

Since Windows 11 (or maybe earlier) Windows Notepad internally stores unsaved files so if the application (or Windows) crashes they will be still there later. For example, Notepad++ stores those temp files in:

C:\Users\USERNAME\AppData\Roaming\Notepad++\backup

I've searched here (and searching online about this pointed me here too) :

C:\Users\USERNAME\AppData\Roaming
C:\Users\USERNAME\AppData\Local

But it seems they are not there (I even grepped all .txt files in those directories recursively)

golimar
  • 1,904

2 Answers2

7

Found it in:

C:\Users\USERNAME\AppData\Local\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState

Not sure what is the encoding, at least Notepad++ couldn't identify it, but the text is there

golimar
  • 1,904
1

The temp Notepad files are stored as bin files in HEX. You can view them in any text editor that supports/recognizes HEX-format. To convert the file to plain text visit: https://www.geeksforgeeks.org/dsa/convert-hexadecimal-value-string-ascii-value-string/