Am new to C++, i just need a sample script for replaceing a string, that scripts accepts two arguments serach string(STR1) and Replace string(ST2)
then replace STR1 with STR2.
It won't help you if we hand you the solution. To start with, stop using the word script... we don't write scripts... What will you be searching through? Is this is text file you want to go through and perform a find/replace? Is the data already sorted? How large is the data? Depending on such factors there are simple algorithms that will assist.
am going to use this script in my DWH tool , output object file is used to write a replace function in my tool, i don't have an idea in c++.
it needs to search existing data in a file and then replace it, file size max of 2GB.