Advertisement
sNow_32

system

Sep 27th, 2015
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h>
  3.  
  4. using namespace std;
  5.  
  6. int main() {
  7.     string arg1 = "nano ";
  8.     string arg2;
  9.     cout << "File path: "; cin >> arg2;
  10.     string process = arg1 + arg2;
  11.     system( process.c_str() );
  12.     return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement