Lines Matching defs:fp
44 IOFile(const char* s, const char* mode) : fp(0) {45 fp = ::fopen(s, mode);46 if(!fp) {52 if(fp) {53 return ::fread(&r, sizeof(T), elem, fp);58 if(fp) {59 return ::fprintf(fp, s, val);63 bool valid() const { return fp != 0; }65 if(fp) ::fclose(fp);66 fp=0;68 FILE* fp;