Opening a file through argv[1] C++ Question
<p>I have check to see if the argument in argv[1] is valid for my file.</p>

<p>i have a menu system in its own sub-routine called in main.</p>

<p>Reading the file and so on is done in another sub-routine sepearte from the first, also called in main.</p>

<p>How can i transfer the argv[1] to the first sub-routine? Or even the second?</p>

<p>string sArgInit = argv[1]</p>

<p>This way i can open the file using a C-String.</p>

<p>But i cant get the string to any function outside of main..</p>

<p>is there a way to do this without:
global varaibles,
passing the string as an argument paramter to the sub-routine.</p>
