file operation problem

pages.txt contains :
One
Two
Three

I wanna change "One" with scanf "Four" (for example)
so the pages.txt will be like this :
Four
Two
Three

Is it possible to do?
Thanks
Topic archived. No new replies allowed.