From 033d696ceb6f674252ee31c98db396ba4d10481f Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 17 Feb 2016 16:01:38 -0500 Subject: Attemped to fix line-endings for Windows --- ebooks.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ebooks.cpp') diff --git a/ebooks.cpp b/ebooks.cpp index fdbeeab..18a0a79 100644 --- a/ebooks.cpp +++ b/ebooks.cpp @@ -23,6 +23,11 @@ int main(int argc, char** args) std::string line; while (getline(infile, line)) { + if (line.back() == '\r') + { + line.pop_back(); + } + corpus += line + "\n "; } -- cgit 1.4.1