Hi all,
I read faq219-555 about doing a search and replace. However, it doesn't quite fit what I need to do and I am noit sure what needs to be modified.
The script will run through a file and replace all occurances of XXX. However, I have a file that is 100 lines long and has data similar to:
1111|0000|No
1112|0001|No
1113|0002|No
What I need to do is change the first occurance of the word No to Yes and save the entire file with that one change so I get:
1111|0000|Yes
1112|0001|No
1113|0002|No
Any suggestions will be greatly appreciated.
Jim
I read faq219-555 about doing a search and replace. However, it doesn't quite fit what I need to do and I am noit sure what needs to be modified.
The script will run through a file and replace all occurances of XXX. However, I have a file that is 100 lines long and has data similar to:
1111|0000|No
1112|0001|No
1113|0002|No
What I need to do is change the first occurance of the word No to Yes and save the entire file with that one change so I get:
1111|0000|Yes
1112|0001|No
1113|0002|No
Any suggestions will be greatly appreciated.
Jim