Changing the String of the file at one shot.

2005-03-07 Thread Suneel Kumar B
Hi Goodies, I have a situation where in, iam updating a file by replacing few strings in some lines with another string. While doing this, Can i have an option by which i could open a file for both read and write simultaneously, so that i could search and replace the string straight away..??

How can we get the Line Number

2005-03-01 Thread Suneel Kumar B
Hi all, May be my earlier mail is missed somewhere.. I wish you all a nice day.. While matching a string with each line of a file, if the string is matched with any of those lines, How can we get the line number of the line where it is matched..? Is there any built-in function for fetching the