Lines Matching refs:file
4 * This file is distributed under the terms of the MIT License.
66 OpenSettingsFile(BFile& file, int mode)
79 status = file.SetTo(path.Path(), mode);
83 status = file.SetTo(path.Path(), mode);
220 BFile file;
221 if (OpenSettingsFile(file, B_READ_ONLY) == B_OK) {
223 if (settings.Unflatten(&file) == B_OK) {
238 BFile file(path.Path(), B_READ_ONLY);
239 if (file.InitCheck() == B_OK
240 && file.Read(&fWindowFrame, sizeof(BRect)) == sizeof(BRect)) {
244 if (file.Read(&frame, sizeof(BRect)) == sizeof(BRect))
265 BFile file;
266 if (OpenSettingsFile(file, B_WRITE_ONLY | B_ERASE_FILE | B_CREATE_FILE)
280 settings.Flatten(&file);
497 BFile file;
498 if (OpenSettingsFile(file, B_READ_ONLY) == B_OK) {
500 if (settings.Unflatten(&file) == B_OK)
509 BFile file;
510 if (OpenSettingsFile(file, B_READ_ONLY | B_CREATE_FILE) != B_OK)
514 settings.Unflatten(&file);
516 if (OpenSettingsFile(file, B_WRITE_ONLY | B_ERASE_FILE) != B_OK)
522 settings.Flatten(&file);