Flex  0.17.9
file_utils.h
Go to the documentation of this file.
1 
16 #ifndef UTILS_FILE_UTILS_H_
17 #define UTILS_FILE_UTILS_H_
18 
19 #include <fstream>
20 #include <iostream>
21 #include <sstream>
22 #include <string>
23 
24 #include <glog/logging.h>
25 
26 namespace gs {
27 
28 bool read_string_from_file(const std::string& file_path, std::string& content);
29 
30 bool write_string_to_file(const std::string& content,
31  const std::string& file_path);
32 
33 } // namespace gs
34 
35 #endif // UTILS_FILE_UTILS_H_
gs::read_string_from_file
bool read_string_from_file(const std::string &file_path, std::string &content)
Definition: file_utils.cc:20
gs
Definition: adj_list.h:23
gs::write_string_to_file
bool write_string_to_file(const std::string &content, const std::string &file_path)
Definition: file_utils.cc:33