my program is to open a input file,
i do not know what words is in the file,
and i have to open a command file (a text file),
the command file is to tell the program what word to search and what to do,
also i do not know what those command is,

the program have to follow the command and to search for the word inside input file,
and to add/replace the specified words..
finally output the corrected text in a new text file.

how can i do that? i am new in c++.

Start by opening the input file, read each line/word and output it to the screen. When file is done, close the file and exit.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.