char* argv[]

Hello everyone, I just need your help, I'm new with C++. And I have a question how could I extract from argv[] a char? I just have to call a program with some arguments, and one of those arguments is filename or directoryname. Need ur help, plz. Really don't know what to do. Thx a lot.
Each argv[i] is a C string ( char array ) where i is in the range [0,argc)
Notice that argv[0] is always the program file name
yeah, but i have problem with if ( access(argv[1]), 0 ) == 0 ) .... :(
Which sort of problem?
Are you checking argc has the right value before proceeding?
Topic archived. No new replies allowed.