summaryrefslogtreecommitdiff
path: root/le/le_file_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'le/le_file_parser.cpp')
-rw-r--r--le/le_file_parser.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/le/le_file_parser.cpp b/le/le_file_parser.cpp
index fe34857..42b485b 100644
--- a/le/le_file_parser.cpp
+++ b/le/le_file_parser.cpp
@@ -50,7 +50,8 @@ int main(int argc, char* argv[]) {
return -1;
}
- std::ifstream file(file_path.string());
+ std::ifstream file(file_path.string(), std::ios::binary);
+ file.unsetf(std::ios::skipws);
auto x = le::parse_file(file);
binparse::otreestream treestream (std::cout);
treestream << x << std::endl;