Help – C ++ Read Archive and Substi

Good night guys
I have a question in c ++
I have to read a file, replace some characters with another one and generate a new file.
Could someone help me?