arguments, directories and stuff...
i have this program... like any program and i would like to make it so that when u type /h after it would go completely silent like that it would print anything on the screen(already covered the code where it doesnt print anything) but i was wondering moe about the commandline arguments and stuff...
and case two... if my program creates a file... how can i change the directory where it puts them ?
Re: arguments, directories and stuff...
Quote:
Originally posted by Unregistered
and case two... if my program creates a file... how can i change the directory where it puts them ?
you can specifify fully qualified names, like this:
>fopen("c:\\mydir1\\mydir2\\myfile1", "w");
or
>fopen("/home/usr/bob/bobsfile", "w");
and relative like
"subdir/myfile.txt"
Remember to double up the backslashes if you are using them for DOS files.