Im writing a program that needs to call vi or something similar, to edit a text file. Do I need to use the system function, or something that sends commands directly to the operating system? I want vi to do something like delete a line or something simple.
Thanks