theniteowl
Programmer
Hi All.
I know I have done this in the past but it has been a while.
I need to replace every occurance of a folder path inside a text file with an alternate path. The text files can run just over 16 meg in size. I know there are methods that are more efficient when working with large files but do not remember what they are.
Anyone have code for doing this before I go reinvent it?
I know it's basically open file, open output file, read input/replace text, write to output file and handle renaming/deleting the files when done. I just want to make it as efficient as is reasonable.
Thanks.
At my age I still learn something new every day, but I forget two others.
I know I have done this in the past but it has been a while.
I need to replace every occurance of a folder path inside a text file with an alternate path. The text files can run just over 16 meg in size. I know there are methods that are more efficient when working with large files but do not remember what they are.
Anyone have code for doing this before I go reinvent it?
I know it's basically open file, open output file, read input/replace text, write to output file and handle renaming/deleting the files when done. I just want to make it as efficient as is reasonable.
Thanks.
At my age I still learn something new every day, but I forget two others.