read the file that is opened with my console application in C++
See the question and my original answer on StackOverflowYou just need to declare arguments to your main like this:
int main(int argc, char *argv[])
{
...
}
And the file path will be passed as one of the argument. If you open multiple files, it will run one process per file.