title: Lua - how to write string to editor or browser window
body: <p>I have an app written in Lua with wxLua. While this app is running, I want to be able to send a (large) string to an external program so the user can view the string, search it, etc.</p>
  
  <p>This external program can be notepad, notepad++, etc, or even a browser window, as long as the user can view and search the text.</p>
  
  <p>I can open open an editor using</p>
  
  <p>local handle = io.popen("notepad", "w") -- for example</p>
  
  <p>but then</p>
  
  <p>handle:write (myString)</p>
  
  <p>doesn't show anything in the editor. And notepad++ doesn't even open a new window if I already have it running.</p>
  
  <p>I can launch a browser using</p>
  
  <p>wx.wxLaunchDefaultBrowser ("http://stackoverflow.com")</p>
  
  <p>but I don't know how to pass the (100-200kb) string to the browser window.</p>
  
  <p>Any help is very much appreciated, thank you!
  Stomp</p>