Hi,all
I use fopen to open a txt file in Unix , but it always fails (ipf =@NULL ). The file 1.txt is already in the current directory.
I don' t know why. Can you give some advice?
Thanks,
--------------------------------------------------
char *File1=NULL,*File2=NULL;
FILE *ifp=NULL,*ofp=NULL;
File1= "./1.txt";
File2= "./1-1.txt";
ifp=fopen(File1,"r");
ofp=fopen(File2,"w");