Lines Matching defs:file
4 * This file is distributed under the terms of the MIT License.
85 status_t _Open(BFile& file, int mode);
174 BFile file;
175 if (_Open(file, B_READ_ONLY) == B_OK) {
177 if (settings.Unflatten(&file) == B_OK) {
195 BFile file(path.Path(), B_READ_ONLY);
196 if (file.InitCheck() == B_OK
197 && file.Read(&fWindowFrame, sizeof(BRect)) == sizeof(BRect)) {
201 if (file.Read(&frame, sizeof(BRect)) == sizeof(BRect))
258 // write settings file
259 BFile file;
260 if (_Open(file, B_WRITE_ONLY | B_CREATE_FILE | B_ERASE_FILE) != B_OK)
271 settings.Flatten(&file);
276 WorkspacesSettings::_Open(BFile& file, int mode)
287 status = file.SetTo(path.Path(), mode);
291 status = file.SetTo(path.Path(), mode);