Spawning an External Editor - how does this work? Spawning an External Editor - how does this work? unix unix

Spawning an External Editor - how does this work?


If you launch a process through Java (Runtime.exec), you get a Process object back, which has a waitFor() method that will tell you when the process is complete.

Just run vi or nano or whatever via that, and once it exits, you can read the file.