Commit 21abf38d authored by Bryan Berthou's avatar Bryan Berthou
Browse files

refs#16

In ElementaryUtils :
- Rename function in FileUtils
parent 0251ec4d
......@@ -38,7 +38,7 @@ public:
static void close(std::ofstream & fileOutputStream);
static void write(const std::string & filePath, const std::string & str);
static void writef(const std::string & filePath, const std::string & str);
static void writeLine(const std::string & filePath, const std::string & str);
static std::string read(const std::string & filePath);
static std::vector<std::string> readByLine(const std::string & filePath);
static std::ifstream::pos_type getFileSize(const std::string & filetPath);
......
......@@ -21,11 +21,11 @@ void FileUtils::write(const std::string & filePath, const std::string & str) {
}
}
void FileUtils::writef(const std::string & filePath, const std::string & str) {
void FileUtils::writeLine(const std::string & filePath, const std::string & str) {
std::ofstream file(filePath.c_str(), std::ios_base::app);
if (file) {
file << str << "\n";
file << str << '\n';
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment