How do I invoke a text editor from the terminal?
open -e <filename>
The option -e
is used to open the file <filename>
with TextEdit.
There are plenty of ways. Try:
vi <filename you want to save or open.cpp>
,pico
,Open /Applications/TextEdit.app <filename>
.