CoreUtils/MFile.cpp
2025-05-17 20:47:09 -07:00

21 lines
373 B
C++

#include "MFile.h"
#include "Exception.h"
#include <sys/stat.h>
namespace coreutils {
MFile::MFile(coreutils::MString fileName) : fileName(fileName) {
inFile.open(fileName.c_str());
*this << inFile;
inFile.close();
}
void MFile::update() {
outFile.open(fileName.c_str());
outFile << *this;
outFile.close();
}
}