list initializer

This commit is contained in:
hugogogo
2022-02-07 14:47:39 +01:00
parent bb43bb40e8
commit 649b6168ef
5 changed files with 82 additions and 18 deletions

32
d01/ex04/Sed.cpp Normal file
View File

@@ -0,0 +1,32 @@
#include "Sed.hpp"
Sed::Sed(char *file, char *find, char *replacement)
: _file( file )
// , _new_file( file.append(".replace") )
, _find( find )
, _replacement( replacement )
{
// this->_buf =
return;
}
Sed::~Sed() {
// delete[] this->_buf;
return;
}
void Sed::replace() {
std::ifstream file(this->_file.c_str());
char c;
while (file.get(c))
{
std::cout << c;
}
}