Hello
I have downloaded a code from net which in one part, it works with files.
here is some lines of that code
Code:
char *cfilename=0;
char *rfilename[1];
.
.
.
if (cfilename==0)
cfilename=argv[i];
else
rfilename[ref++]=argv[i];
.
.
.
FILE *fd=fopen(cfilename,"r");
if (fd==NULL)
{
fprintf(stderr,"Error reading %s\n",cfilename);
return -1;
}
else
{
.
.
.
my problem is that, it cann't open the file
I have two txt files in the same directory (written in notepad and saved as unicode) named "cFileU" and "rFileU".
I set the arguments: cFileU rFileU
can you plz tell me what I should do to make it open the files?!!
Thank you