- Create a Blob constructor, pass the data in it to be to save and mention the type of data.
- And finally, call the saveAs(Blob object, “your-file-name. text”) function of FileSaver. js library.
How do you save a Notepad file?
Let’s start with clicking File tab and clicking on Save As. For our lessons, I will type these instruction as “File>Save As.” The “Save As” window will appear. Notice on the top left, there is a Notepad icon and the words “Save As” to remind you where you are – which window is open.
Where are my notepad files saved?
If you want to recover notepad file that is unsaved after a restart, you can go to C:UsersUSERNAMEAppDataRoaming to find and recover unsaved text file.
How do I show a .TXT file?
How to view a computer file extension
- Right-click the file.
- Select the Properties option.
- In the Properties window, similar to what is shown below, you should see the “Type of file:” entry, which is the file type and extension. As can be seen in the example below, this file is a TXT file with a . txt file extension.
Use Cross-Browser Compliant Libraries