When I try to use an input file in command line, for some reason the program dont indentify to file. It says in argc that it is still 1 and acts like it havnt got any file.
int main(int argc, char *argv[])
{
printf("%d\n",argc);
return 0;
}
Like when I try to this code it print 1, but Igave an arguments of file so it need to print 2. I put the command line arguments in Project->Properties->Debugging->Command Arguments->(file name)
edit: here's a picture of my program and setting hope it will make things clearer.