Lines Matching defs:file
4 // you may not use this file except in compliance with the License.
47 // Each run's log appends to the log file.
51 // out a new file and replace the existing one with it.
139 log_file_path_ = path; // we don't actually open the file right now, but will
179 OpenForWriteIfNeeded(); // create the file even if nothing has been recorded
198 // Opening a file in append mode doesn't set the file pointer to the file's
211 explicit LineReader(FILE* file)
212 : file_(file), buf_end_(buf_), line_start_(buf_), line_end_(NULL) {
216 // Reads a \n-terminated line from the file passed to the constructor.
263 FILE* file = fopen(path.c_str(), "r");
264 if (!file) {
275 LineReader reader(file);
292 fclose(file);
358 fclose(file);
361 return LOAD_SUCCESS; // file was empty