Fixed MString and MFile.
This commit is contained in:
1 parent
11d6f00bfb
commit
829dc1a3c7
12 files changed
+65
-22
No files matched your search
@@ -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;
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user