]> git.donarmstrong.com Git - mothur.git/commitdiff
version 1.4
authorwestcott <westcott>
Fri, 19 Jun 2009 18:15:30 +0000 (18:15 +0000)
committerwestcott <westcott>
Fri, 19 Jun 2009 18:15:30 +0000 (18:15 +0000)
sharedordervector.cpp

index d0c97f9ab5a16655a381ffb3390dbb4cf94d420a..a009db16546d647b902dc31a6f00713485d03126 100644 (file)
@@ -57,9 +57,6 @@ SharedOrderVector::SharedOrderVector(ifstream& f) : DataVector() {  //reads in a
                        }
                }
                
-               //save position in file in case next line is a new label.
-               pos = f.tellg();
-               
                if (f.eof() != true) { f >> nextLabel; }
                
                //read the rest of the groups info in
@@ -82,15 +79,13 @@ SharedOrderVector::SharedOrderVector(ifstream& f) : DataVector() {  //reads in a
                                }
                        }
                        
-                       //save position in file in case next line is a new label.
-                       pos = f.tellg();
-       
+                               
                        if (f.eof() != true) { f >> nextLabel; }
 
                }
                
                //put file pointer back since you are now at a new distance label
-               f.seekg(pos, ios::beg);
+               for (int i = 0; i < nextLabel.length(); i++) { f.unget();  }
        
                if (globaldata->gGroupmap == NULL) { globaldata->gGroupmap = groupmap; }