]> git.donarmstrong.com Git - mothur.git/blobdiff - fastamap.cpp
altered venn command to make use of sharedchao for any number of groups, fixed window...
[mothur.git] / fastamap.cpp
index 97c090d34564f92363da4ef1340853b7a204cdee..a1beda31ac5ee82c532676163179197a004f91eb 100644 (file)
@@ -15,11 +15,12 @@ void FastaMap::readFastaFile(ifstream& in) {
                string name, sequence, line;
                sequence = "";
        
-               getline(in, line);
+               in >> line;
                name = line.substr(1, line.length());  //rips off '>'
        
                //read through file
-               while (getline(in, line)) {
+               while (in.eof() != true) {
+                       in >> line;
                        if (line != "") {
                                if (isalnum(line.at(0))) {  //if it's a sequence line
                                        sequence += line;