So, I have question. I already know how to open a txt file so you can write data to it and close it but lets say I wanted to have a console application that prompts the user to enter in the name of a text file to create. So the user would enter in the name and then it would create a text file and allow you to edit the file.
So it would be like
Enter file name to create: example.txt
(allows you to edit example.txt (or whatever you called the file and then closes the file)