openInputFile(inName, inFile);
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t' << label << "\tlci\thci" << endl;
}
try {
if(counter != 0){
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << setprecision(4) << '\t' << data[0] << '\t' << data[1] << '\t' << data[2] << endl;
}
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ThreeColumnFile", "resetFile");
openInputFile(inName, inFile);
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t';
for(int i = 0; i < tags.size(); i++) {
if(counter != 0){
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t' << setprecision(6) << data[0] << setprecision(iters.length());
for (int i = 1; i< data.size(); i++) {
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "ColumnFile", "resetFile");
openInputFile(inName, inFile);
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t' << label << "\tlci\thci" << endl;
}
try {
if(counter != 0){
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << setprecision(4) << '\t' << data[0] << '\t' << data[1] << '\t' << data[2] << endl;
}
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedThreeColumnFile", "resetFile");
openInputFile(inName, inFile);
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t' << label << endl;
}
try {
if(counter != 0){
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << setprecision(4) << '\t' << data[0] << endl;
}
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "OneColumnFile", "resetFile");
openInputFile(inName, inFile);
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << '\t' << label << endl;
}
if(counter != 0){
string inputBuffer;
- getline(inFile, inputBuffer);
+ inputBuffer = getline(inFile);
outFile << inputBuffer << setprecision(2) << '\t' << dataOutput << endl;
}
outFile.close();
}
counter = 1;
-
+
remove(inName.c_str());
+
renameOk = rename(outName.c_str(), inName.c_str());
//checks to make sure user was able to rename and remove successfully
- if ((renameOk != 0)) { mothurOut("Unable to rename necessary files."); mothurOutEndLine(); }
-
-
+ if ((renameOk != 0)) {
+ mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ perror(" : ");
+ }
}
catch(exception& e) {
errorOut(e, "SharedOneColumnFile", "resetFile");