From c6465bd8c6aca006bc7e980d5db08518659bae3c Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Sun, 11 Sep 2016 22:56:42 +0200 Subject: Adds a Pages struct to the le::File which contains all pages. --- le/le_file_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'le/le_file_parser.cpp') 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; -- cgit v1.2.3-70-g09d2