Help for this page

Select Code to Download


  1. or download this
        fseek(fp, 0, SEEK_END);
        nBuf = ftell(fp);
    ...
            }
            fseek(fp, 0, SEEK_SET);
            if (fread(cpBuf, nBuf, 1, fp) == 0) {
    
  2. or download this
                fprintf(fp, "%c", c);