How to Open and Edit a Text File on a Mac
Click the insertion cursor anywhere in the file and begin typing.
To edit existing text, drag the insertion cursor across the characters to highlight them and type the replacement text. TextEdit automatically replaces the existing characters with those that you type. To simply delete text, highlight the characters and press Delete.