diff --git a/application/main.cpp b/application/main.cpp index 86305a9..cb766b5 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -26,8 +26,8 @@ int main(int argc, char* argv[]) }); arg.with("--file=", [](std::filesystem::path file_path) { - const std::string file_contents = core::file_stream::file_contents_as_string(file_path); - std::println("{}", file_contents); + const std::string file_content = core::file_stream::file_content_as_string(file_path); + std::println("{}", file_content); }); } diff --git a/core-library/io/file-stream.cpp b/core-library/io/file-stream.cpp index d27cd86..efb5d23 100644 --- a/core-library/io/file-stream.cpp +++ b/core-library/io/file-stream.cpp @@ -33,7 +33,7 @@ core::file_stream core::file_stream::open_for_reading(const std::filesystem::pat return stream; } -std::string core::file_stream::file_contents_as_string(const std::filesystem::path& file_path) +std::string core::file_stream::file_content_as_string(const std::filesystem::path& file_path) { file_stream stream = open_for_reading(file_path); return stream.read_all_as_string(); diff --git a/core-library/io/file-stream.h b/core-library/io/file-stream.h index 8033c8f..ba58ed9 100644 --- a/core-library/io/file-stream.h +++ b/core-library/io/file-stream.h @@ -17,7 +17,7 @@ public: ~file_stream(); static file_stream open_for_reading(const std::filesystem::path& file_path); - static std::string file_contents_as_string(const std::filesystem::path& file_path); + static std::string file_content_as_string(const std::filesystem::path& file_path); std::string read_all_as_string(); void close();