Lines Matching refs:file
36 FILE* file = NULL; in readBytes() local
37 file = fopen(filePath.string(), "r"); in readBytes()
40 if (NULL != file) { in readBytes()
41 int fd = fileno(file); in readBytes()
52 fclose(file); in readBytes()
58 FILE* file = NULL; in readBytes() local
59 file = fopen(filePath.string(), "r"); in readBytes()
62 if (NULL != file) { in readBytes()
63 int fd = fileno(file); in readBytes()
73 fclose(file); in readBytes()
79 FILE* file = NULL; in writeToFile() local
80 file = fopen(filePath.string(), "w+"); in writeToFile()
82 if (NULL != file) { in writeToFile()
83 int fd = fileno(file); in writeToFile()
91 fclose(file); in writeToFile()
96 FILE* file = NULL; in appendToFile() local
97 file = fopen(filePath.string(), "a+"); in appendToFile()
99 if (NULL != file) { in appendToFile()
100 int fd = fileno(file); in appendToFile()
106 fclose(file); in appendToFile()