title: How do I invoke a text editor from the terminal?
body: <p>In the Windows command prompt, I can type <code>notepad helloworld.cpp</code> which will then create a <em>.cpp</em> file with the name <em>helloworld</em> and open up Notepad for me.</p>
  
  <p>Is there a similar function for Mac Terminal, preferably with Textmate or Textedit?</p>
  
  <p>I'm running Mac OS X Lion 10.7, with Xcode developers tool.</p>