How can I create a file (.txt) using coding?