CodePudding user response:
Don't put theFopen ("... ", "... "); Fscanf fprintf, the fgets, fgetc fputc, fclose//read the replaced \ r \ n \ n, write to replace the \ n \ r \ n. EOF is read \ x1a set; When the content of the read and write characters see
And
Fopen ("... ", "... "); Fseek, ftell, fread and fwrite, fscanf, fprintf, the fgets, fgetc, fputc, fclose//do not make the above replacement, encounter \ x1a continued to read; When the content of the read and write bytes see
Confused by the
CodePudding user response:
Is the FILE * p1=fopen (newFile, "wb");