How to save a C++ console output in a text file? -


i have 2 console outputs of 2 different scripts. want compare these outputs each other finding conserved letters in both outputs along position in output. trying is, want save both console outputs in 2 different text files , check 2 files conserved letters , relative positions.

is i'm going in correct path or can option comparing outputs. if yes provide method saving console outputs in text files. , if no provide other accurate method comparing console outputs.

you run scripts c++ program, e.g. popen(3) or custom exec+fork depending on whether need deal escape sequence issues, etc.

for writing file and

to read later.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -