Member 4399771 wrote:
I am trying to use CFile class in MFC, but it has limited methods to do such operations.
CFile provides file handling (open, close, read, write) methods, as it should. You have to
- Read the file (maybe partially) in a buffer (for instance in a
CString
object) - do the replace operations in the buffer (
CString
class has methods to do it) - Save the modified buffer to disk using, again,
CFile
.
:)