Fixed MString and MFile.

This commit is contained in:
Brad Arant committed 2025-12-04 16:40:11 -08:00
1 parent 11d6f00bfb
commit 829dc1a3c7
12 files changed
+65 -22

No files matched your search

+8
View File
@@ -11,6 +11,7 @@
#include <unistd.h>
#include <fcntl.h>
#include <cctype>
#include <fstream>
namespace coreutils {
@@ -216,6 +217,13 @@ namespace coreutils {
return *this;
}
MString &MString::operator<<(std::ifstream &pf) {
std::string line;
while(std::getline(pf, line))
*this << line << '\n';
return *this;
}
// MString &operator<<(std::ostream &out) {
// *this << out;
// }