The command:
$ emacs someFile
either creates an empty file named someFile within the current directory (if a file with this name doesn't exist) using the emacs command-line text editor, or opens an existing file named someFile. Within the emacs editor, you can change, delete, and add content.
Here are links to some great emacs guides and YouTube videos: