X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=fileoutput.cpp;h=a4a68a8ef25a66ca52052faf8a1e8e6221bec4af;hp=c2432acaaf039b9ef9ac59b287cd55649f606105;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=260ae19c36cb11a53ddc5a75b5e507f8dd8b31d6 diff --git a/fileoutput.cpp b/fileoutput.cpp index c2432ac..a4a68a8 100644 --- a/fileoutput.cpp +++ b/fileoutput.cpp @@ -15,7 +15,7 @@ ThreeColumnFile::~ThreeColumnFile(){ inFile.close(); outFile.close(); - remove(outName.c_str()); + m->mothurRemove(outName); } /***********************************************************************/ @@ -78,7 +78,7 @@ void ThreeColumnFile::resetFile(){ } counter = 1; - remove(inName.c_str()); + m->mothurRemove(inName); renameOk = rename(outName.c_str(), inName.c_str()); //renameFile(outName, inName); @@ -102,7 +102,7 @@ ColumnFile::~ColumnFile(){ inFile.close(); outFile.close(); - remove(outName.c_str()); + m->mothurRemove(outName); } /***********************************************************************/ @@ -182,7 +182,7 @@ void ColumnFile::resetFile(){ } counter = 1; - remove(inName.c_str()); + m->mothurRemove(inName); renameOk = rename(outName.c_str(), inName.c_str()); //renameFile(outName, inName); @@ -206,7 +206,7 @@ SharedThreeColumnFile::~SharedThreeColumnFile(){ inFile.close(); outFile.close(); - remove(outName.c_str()); + m->mothurRemove(outName); } /***********************************************************************/ @@ -270,7 +270,7 @@ void SharedThreeColumnFile::resetFile(){ } counter = 1; - remove(inName.c_str()); + m->mothurRemove(inName); renameOk = rename(outName.c_str(), inName.c_str()); //renameFile(outName, inName); @@ -295,7 +295,7 @@ OneColumnFile::~OneColumnFile(){ inFile.close(); outFile.close(); - remove(outName.c_str()); + m->mothurRemove(outName); } /***********************************************************************/ @@ -357,7 +357,7 @@ void OneColumnFile::resetFile(){ } counter = 1; - remove(inName.c_str()); + m->mothurRemove(inName); renameOk = rename(outName.c_str(), inName.c_str()); //renameFile(outName, inName); @@ -382,7 +382,7 @@ SharedOneColumnFile::~SharedOneColumnFile(){ inFile.close(); outFile.close(); - remove(outName.c_str()); + m->mothurRemove(outName); } /***********************************************************************/ @@ -454,7 +454,7 @@ void SharedOneColumnFile::resetFile(){ } counter = 1; - remove(inName.c_str()); + m->mothurRemove(inName); renameOk = rename(outName.c_str(), inName.c_str()); //renameFile(outName, inName);