Alternatively you can open the file into an Excel sheet providing there are less than 65535 lines, use the wizard and record a macro for the syntax, there is probably more on this in help.
As well as the Input as #(Freefile), you can also open "For Append" to add lines and "For Output" to create a new text file.
The #(Freefile) is the handle on the open text files you can have, I think you can open 511 text files at a time.
Regards
Dr B