Text file help!

How can I look for an integer in a text file and replace it with another integer in c++?
Topic archived. No new replies allowed.