Closes the current TextStream object.
Although calling the Close method does not invalidate the object reference, you shouldn’t try to reference a TextStream object that has been closed.
After closing the TextStream object, set
If you are writing to a file-based text stream, text is automatically written to the file. You do not have to call the Save method to commit changes to a disk file before calling the Close method.