diff options
author | Chris Dyer <redpony@gmail.com> | 2015-05-22 12:39:25 -0400 |
---|---|---|
committer | Chris Dyer <redpony@gmail.com> | 2015-05-22 12:39:25 -0400 |
commit | 05379269d3e88d596b0d3c331cc4d5548f2d912f (patch) | |
tree | 9c9a743884796e466ee244c63fdd66a4f459b81a /extractor/alignment.cc | |
parent | cf61f8bc83ef280292a141ac9f8148eaf28596cc (diff) |
read gz files
Diffstat (limited to 'extractor/alignment.cc')
-rw-r--r-- | extractor/alignment.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/extractor/alignment.cc b/extractor/alignment.cc index 4a7a14f4..3f9bc630 100644 --- a/extractor/alignment.cc +++ b/extractor/alignment.cc @@ -7,6 +7,8 @@ #include <unistd.h> #include <vector> +#include "filelib.h" + #include <boost/algorithm/string.hpp> using namespace std; @@ -14,7 +16,8 @@ using namespace std; namespace extractor { Alignment::Alignment(const string& filename) { - ifstream infile(filename.c_str()); + ReadFile rf(filename); + istream& infile = *rf.stream(); string line; while (getline(infile, line)) { vector<string> items; |