Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmoein committed Aug 12, 2024
1 parent 8ae02e4 commit 9ad97bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/DataFrame/Utils/Utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ struct IOFileOpti {
std::FILE *file;

explicit
IOFileOpti(const char *file_name) : file(std::fopen(file_name, "r")) {
IOFileOpti(const char *file_name, bool binary = false)
: file(std::fopen(file_name, binary ? "rb" : "r")) {

std::setvbuf(file, nullptr, _IOFBF, SIZ);
}
Expand Down

0 comments on commit 9ad97bf

Please sign in to comment.