if the file does not already exist then click on the text editor icon in the dock to launch it with no content just as with the terminal you can get this from the dock on the left hand side of the screen