call up an EDITOR using c++
I have the following uing a phyton script I would like to write this using c++
Any one got a good approach to do this using c++ classes
1 2 3 4 5 6 7 8 9
|
import sys, tempfile, os
from subprocess import call
EDITOR = os.environ.get('EDITOR','vim')
initial_message = ""
tempfile.write(initial_message)
tempfile.flush()
call([EDITOR, tempfile.name])
| |
Topic archived. No new replies allowed.