outFile.setf(ios::showpoint);
}
catch(exception& e) {
- errorOut(e, "ThreeColumnFile", "initFile");
+ m->errorOut(e, "ThreeColumnFile", "initFile");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "ThreeColumnFile", "output");
+ m->errorOut(e, "ThreeColumnFile", "output");
exit(1);
}
}
remove(inName.c_str());
renameOk = rename(outName.c_str(), inName.c_str());
+ //renameFile(outName, inName);
+
//checks to make sure user was able to rename and remove successfully
if ((renameOk != 0)) {
- mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
perror(" : ");
}
}
catch(exception& e) {
- errorOut(e, "ThreeColumnFile", "resetFile");
+ m->errorOut(e, "ThreeColumnFile", "resetFile");
exit(1);
}
}
outFile.setf(ios::showpoint);
}
catch(exception& e) {
- errorOut(e, "ColumnFile", "initFile");
+ m->errorOut(e, "ColumnFile", "initFile");
exit(1);
}
}
}
catch(exception& e) {
- errorOut(e, "ColumnFile", "output");
+ m->errorOut(e, "ColumnFile", "output");
exit(1);
}
}
remove(inName.c_str());
renameOk = rename(outName.c_str(), inName.c_str());
+ //renameFile(outName, inName);
+
//checks to make sure user was able to rename and remove successfully
if ((renameOk != 0)) {
- mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
perror(" : ");
}
}
catch(exception& e) {
- errorOut(e, "ColumnFile", "resetFile");
+ m->errorOut(e, "ColumnFile", "resetFile");
exit(1);
}
}
outFile.setf(ios::showpoint);
}
catch(exception& e) {
- errorOut(e, "SharedThreeColumnFile", "initFile");
+ m->errorOut(e, "SharedThreeColumnFile", "initFile");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "SharedThreeColumnFile", "output");
+ m->errorOut(e, "SharedThreeColumnFile", "output");
exit(1);
}
}
outFile.close();
}
counter = 1;
+
remove(inName.c_str());
renameOk = rename(outName.c_str(), inName.c_str());
+ //renameFile(outName, inName);
+
//checks to make sure user was able to rename and remove successfully
if ((renameOk != 0)) {
- mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
perror(" : ");
}
}
catch(exception& e) {
- errorOut(e, "SharedThreeColumnFile", "resetFile");
+ m->errorOut(e, "SharedThreeColumnFile", "resetFile");
exit(1);
}
}
outFile.setf(ios::showpoint);
}
catch(exception& e) {
- errorOut(e, "OneColumnFile", "initFile");
+ m->errorOut(e, "OneColumnFile", "initFile");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "OneColumnFile", "output");
+ m->errorOut(e, "OneColumnFile", "output");
exit(1);
}
}
if(counter != 0){
outFile.close();
inFile.close();
- }
- else{
+ }else{
outFile.close();
}
counter = 1;
+
remove(inName.c_str());
renameOk = rename(outName.c_str(), inName.c_str());
+ //renameFile(outName, inName);
+
//checks to make sure user was able to rename and remove successfully
if ((renameOk != 0)) {
- mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
perror(" : ");
}
+
}
catch(exception& e) {
- errorOut(e, "OneColumnFile", "resetFile");
+ m->errorOut(e, "OneColumnFile", "resetFile");
exit(1);
}
}
outFile.setf(ios::showpoint);
}
catch(exception& e) {
- errorOut(e, "SharedOneColumnFile", "initFile");
+ m->errorOut(e, "SharedOneColumnFile", "initFile");
exit(1);
}
}
}
}
catch(exception& e) {
- errorOut(e, "SharedOneColumnFile", "output");
+ m->errorOut(e, "SharedOneColumnFile", "output");
exit(1);
}
}
counter = 1;
remove(inName.c_str());
-
renameOk = rename(outName.c_str(), inName.c_str());
+ //renameFile(outName, inName);
+
//checks to make sure user was able to rename and remove successfully
if ((renameOk != 0)) {
- mothurOut("Unable to rename " + outName); mothurOutEndLine();
+ m->mothurOut("Unable to rename " + outName); m->mothurOutEndLine();
perror(" : ");
}
}
catch(exception& e) {
- errorOut(e, "SharedOneColumnFile", "resetFile");
+ m->errorOut(e, "SharedOneColumnFile", "resetFile");
exit(1);
}
}