User Sel Pun (email@example.com) posted:
I am facing problem regarding modifying few line of
file. Winrunner 6.0 support limited no. of
functionality for file process open, close, getline,
Is there any possibility that we can change a single
line in whole file and use it.
I do not see why not. Two ways I can think of doing it. One involves the clipboard and the other doesn't. Which ones would you like
Open document and using the clipboard functions copy the file, then open notepad and paste it into a new document. Using notepads functionality finding and updating data should be fairly easy. When you are done copy the file back onto the clipboard and paste it back into your file.
Hell screw the clipboard just open the document in wordpad and do it there.
basically just open the document and search for the place you need to update/change. Rewrite whatever you need to.
Try checking out Mercury's CSO for more file manipulation functions. There may be functions there that will help.
Simple minds, Simple thoughts!
I figure if you have the courage to get out of bed in the morning, then how bad can the day be.