in reply to Read strings from a file, search and replace same string in another file.

There are a lot of corrections needed in your code.

To begin with, you need to know how to open a file in read+write mode:
Here's the link: sysopen

Then, you need to know how to operate upon a file in read+write mode.

Hope the above information is useful to getting started with what you need to program.

  • Comment on Re: Read strings from a file, search and replace same string in another file.

Replies are listed 'Best First'.
Re^2: Read strings from a file, search and replace same string in another file.
by Anonymous Monk on Dec 09, 2011 at 05:11 UTC

    Thanks for your reply. I did open my file for read write but dont know how it got changed while submitting my code. Finally I was able to get my work done. Thanks again for your help.