list initializer
This commit is contained in:
32
d01/ex04/Sed.cpp
Normal file
32
d01/ex04/Sed.cpp
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user