X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=fileoutput.cpp;fp=fileoutput.cpp;h=a4a68a8ef25a66ca52052faf8a1e8e6221bec4af;hp=c2432acaaf039b9ef9ac59b287cd55649f606105;hb=19fcbbdba99658f5eca244803280f9ee7f9f6607;hpb=65b6a38d00b3a72021611211e7c25392022c69ed 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);