Its just a normal text file, so just use standard stream io on it. Other than that advise its impossible for anyone to tell you more from what little you write. Sort of like walking into an auto repair ship and saying "My car doesn't work can you tell me how to fix it?".
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>This is fetched in the Pro*C code
Pro*C is a compiler, not a language. So you can use any C compiler you want.
Don't expect a quick solution to your problem because there isn't one. Here is one example of parsing html code. You just have to search though each line of the html file and insert whatever you want. There is no magic way to do it.
>>So how do i traverse each record? Getting
std::string line
ifstream in("filename.htm");
ofstream out("newfile.htm");
while( getline(in, line) )
{
// search and replace text here
//
// now rewrite the line
out << line << "\n";
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
You might also check out boost libraries string tokenization . I've never used it, but looks promising for your program.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343