Lines Matching refs:file
84 /* This method will append the contents of the file at the supplied path to the
91 BFile file(path.Path(), O_RDONLY);
95 while((buffer_read = file.Read(buffer, FILE_TO_STRING_BUFFER_LEN)) > 0)
105 BFile file(path.Path(), O_WRONLY | O_CREAT | O_APPEND);
108 return file.WriteExactly(cstr, cstrLen);
248 /* This method checks to see if a file object exists at the path specified. If
288 /*! This method will check that it is possible to write to the specified file.
289 This may create the file, write some data to it and then read that data
294 It is assumed here that the directory containing the test file exists.
316 HDTRACE("did delete the candidate file [%s]", path.Path());
318 HDERROR("unable to delete the candidate file [%s]", path.Path());
324 BFile file(path.Path(), O_WRONLY | O_CREAT);
325 if (file.Write(buffer, 16) != 16) {
326 HDERROR("unable to write test data to candidate file [%s]",
333 BFile file(path.Path(), O_RDONLY);
335 if (file.Read(readBuffer, 16) != 16) {
336 HDERROR("unable to read test data from candidate file [%s]",
343 HDERROR("mismatched read..write check on candidate file [%s]",
386 HDERROR("unable to find the user cache file for "