Lines Matching defs:filename
117 const char* filename) {
120 base::OS::PrintError("Cannot read from file %s.\n", filename);
144 std::vector<char> ReadCharsFromFile(const char* filename, bool* exists,
146 FILE* file = base::OS::FOpen(filename, "rb");
147 std::vector<char> result = ReadCharsFromFile(file, exists, verbose, filename);
174 std::string ReadFile(const char* filename, bool* exists, bool verbose) {
175 std::vector<char> result = ReadCharsFromFile(filename, exists, verbose);
184 int WriteChars(const char* filename, const char* str, int size, bool verbose) {
185 FILE* f = base::OS::FOpen(filename, "wb");
188 base::OS::PrintError("Cannot open file %s for writing.\n", filename);
197 int WriteBytes(const char* filename, const byte* bytes, int size,
200 return WriteChars(filename, str, size, verbose);