Text file and download in html w3schools

Note: The download attribute is new for the element in HTML5. filename, Specifies some text to be used as the filename (no need to specify the file  In this chapter we will teach you how to open, read, and close a file on the server. We will use the text file, "webdictionary.txt", during the lessons:.