Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
33 FILE* file = fopen(filePath.c_str(), "w");
34 if (file == nullptr) {
40 size_t len = fwrite(const_cast<char*>(fileContent.c_str()), 1, fileContent.length(), file);
44 (void)fclose(file);
48 if (fflush(file) == EOF) {
51 (void)fclose(file);
55 fsync(fileno(file));
56 if (fclose(file) != 0) {
144 // invalid file path
152 // invalid file name
168 // delete file