I want to redirect stdout to a file.
say I did:
this would display all the text files on drive C in plain format (one line per file and no details /b does this). I want to redirect this to a file, so my program can search through the txt files for the one it needs.Code:system("dir /b /s c:\\*.txt");