saving in c++

I'm having trouble trying to save a variable from an input of the user. Then use it when i start up another .exe.
If it makes any difference I am using dev c++.
I'm using the input as an a or b so some one will put a for english or b for spanish. after that I want to use that info in another if statement of another .exe.
Here are two possible ways:
1. Save the variable to a file that the second program can access
2. Pass that variable as an argument to the second program
Depending on your operating system, there are other possible ways see for example
Topic archived. No new replies allowed.