summaryrefslogtreecommitdiff
path: root/le/le_file_parser.cpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-09-11 22:56:42 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-09-11 22:56:42 +0200
commitc6465bd8c6aca006bc7e980d5db08518659bae3c (patch)
treed25a4b697640fd5cb38f000e8b2369525b7ef92b /le/le_file_parser.cpp
parent0828d0bf368d7e0bdc835062aad62bc336047350 (diff)
downloadopenwar-c6465bd8c6aca006bc7e980d5db08518659bae3c.tar.gz
openwar-c6465bd8c6aca006bc7e980d5db08518659bae3c.tar.bz2
openwar-c6465bd8c6aca006bc7e980d5db08518659bae3c.zip
Adds a Pages struct to the le::File which contains all pages.
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;