As you learned in the previous lesson, The FileSystemObject object has several methods.
Of these, we will need to use the CreateTextFile method to create a file.
The CreateTextFile method returns a TextStream object
which has its own methods, including WriteLine and Close. The WriteLine method writes a string to the text file plus a new line character.
Writing ASP Text File
The text file that you create could be written to a protected directory that users cannot access, or it could become an order confirmation that is displayed to the user or inserted into an email using stored user information.
Be aware that writing files
for multiple users or writing multiple files for the same user over multiple sessions can significantly increase the complexity of your task.