- Joined
- Nov 15, 2010
- Messages
- 1
- Reaction score
- 0
hiii...
i need your help guys .. i need to pass a file name as command line argument .. and i have to open that file in the program ...
if i use ifstream myfile ("example.txt"); the filename has to be pre-defined .. but i want the file name to be passed as command line argument.. ???
i need your help guys .. i need to pass a file name as command line argument .. and i have to open that file in the program ...
if i use ifstream myfile ("example.txt"); the filename has to be pre-defined .. but i want the file name to be passed as command line argument.. ???
Last edited: