Skip to content

Commit

Permalink
testas
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Apr 21, 2024
1 parent e866ba3 commit 37eb983
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _Src/_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ std::string FilePathFromModFolder(std::string fname) {//they force me
}

auto read_file(std::string_view path) -> std::string {
constexpr auto read_size = std::size_t(4096);
/*constexpr auto read_size = std::size_t(4096);
auto stream = std::ifstream(path.data());
stream.exceptions(std::ios_base::badbit);
if (not stream) {
return ("file does not exist");
return fmt::format("file does not exist ({}({}) error)", __func__, path);
}
auto out = std::string();
auto buf = std::string(read_size, '\0');
while (stream.read(&buf[0], read_size)) {
out.append(buf, 0, stream.gcount());
}
out.append(buf, 0, stream.gcount());
return out;
*/return "test";//out;
}

std::vector<std::string> explode(const std::string& str, const char& ch) {
Expand Down

0 comments on commit 37eb983

Please sign in to comment.