• 0

Modifying contents of a .txt-file using MFC


Question

Hi!

If I have the following ?C:\textfile.txt? with contents:

---------------

Hi there.

This dog is blue and his ID: 1234. BlaBla?

---------------

and would traverse it and find ?ID:? and change ?1234? to for e.g. ?56? so the file would look like:

---------------

Hi there.

This dog is blue and his ID: 45. BlaBla?

---------------

I?m programming VC++ and MFC. Any tips of how I could tackle my problem.

Thanks - Anders

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.