1 #ifndef FILE_UTILS_H 2 #define FILE_UTILS_H 3 4 #include "ValuesFile.h" 5 #include "Configuration.h" 6 #include <string> 7 #include <cstdio> 8 9 using namespace std; 10 11 string translated_file_name(const string& file, const string& locale); 12 13 ValuesFile* get_values_file(const string& filename, const Configuration& configuration, 14 int version, const string& versionString, bool printOnFailure); 15 ValuesFile* get_local_values_file(const string& filename, const Configuration& configuration, 16 int version, const string& versionString, bool printOnFailure); 17 18 void print_file_status(size_t j, size_t J, const string& message = "Reading"); 19 int write_to_file(const string& filename, const string& text); 20 21 22 #endif // FILE_UTILS_H 23