summaryrefslogtreecommitdiff
path: root/extractor/alignment.cc
diff options
context:
space:
mode:
authorChris Dyer <redpony@gmail.com>2015-05-22 12:39:25 -0400
committerChris Dyer <redpony@gmail.com>2015-05-22 12:39:25 -0400
commit05379269d3e88d596b0d3c331cc4d5548f2d912f (patch)
tree9c9a743884796e466ee244c63fdd66a4f459b81a /extractor/alignment.cc
parentcf61f8bc83ef280292a141ac9f8148eaf28596cc (diff)
read gz files
Diffstat (limited to 'extractor/alignment.cc')
-rw-r--r--extractor/alignment.cc5
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;