I'm not really understanding the question however do you know about command line arguments?
does you main function look like this:
Code
int main(int argc, char const *argv[]) {
/* code */
return 0;
}
with argv and argc? or something similar?
That's generally how you would do input files