V
V
vjufvufcgyf2020-09-12 22:07:05
C++ / C#
vjufvufcgyf, 2020-09-12 22:07:05

How to replace multiple characters starting with a specific (character) in a file?

How to replace multiple characters starting with a specific (character) in a file?
I use fstream

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2020-09-13
@vjufvufcgyf

If the file is text and fits into memory, then read the file into an array of characters, change the characters in the array to the ones you need, overwrite the file with data from this array.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question