Lines Matching refs:file
10 * This file may be used under the terms of the Be Sample Code License.
59 BFile* file = NULL;
61 file = new BFile(fRef, B_READ_ONLY);
75 if (file != NULL)
76 file->GetModificationTime(&fLastModificationTime);
77 delete file;
215 BFile file(&entry, B_READ_ONLY);
218 if (file.InitCheck() == B_OK
219 && file.GetAttrInfo(fCategoryAttribute, &info) == B_OK
224 if (file.ReadAttr(fCategoryAttribute.String(), B_STRING_TYPE,
296 BFile file(fRef, B_READ_WRITE);
297 if (file.InitCheck() != B_NO_ERROR)
306 file.WriteAttr(control->Attribute().String(), B_STRING_TYPE, 0,
311 // Write the picture, if any, in the person file content
314 file.Seek(0, SEEK_SET);
315 file.SetSize(0);
325 roster->Translate(&stream, NULL, NULL, &file,
334 file.GetModificationTime(&fLastModificationTime);
357 BFile* file = NULL;
360 file = new(std::nothrow) BFile(fRef, B_READ_ONLY);
362 if (file != NULL && file->GetAttrInfo(attribute, &info) == B_OK) {
364 file->ReadAttr(attribute, B_STRING_TYPE, 0, value, info.size);
370 delete file;