Reading words from a text file and replacing them.

I'm trying to write a program that prompts the user to enter the name of a text file. Reads from the text file until a certain character then prints the words and ask the user to replace the words and prints out the file with replaced words to the screen. For example
Textfile would say:
The sun is <color> and feels <temperature> today.

Enter a color: yellow
Enter a temperature: hot

The sun is yellow and feels hot today.

Could some one help me write this code.
closed account (NUj6URfi)
This seems like a basic problem. You should try writing a rough draft (even if it's not complete and has some comments for missing pieces) and then share that.
Topic archived. No new replies allowed.