How do I open a file in Read and Write ? I want to open a file in Read-Write mode so that I want to find a word and replace it with a different word. How can I acheive this ?

Thanks