i am currently learning C by reading "The C proggraming Language".
I have issues with exercices that implies input and output with `getchar()`/`putchar()`/`EOF`. It seems that the programs made with the exercises are supposed to be used on files. But once i have my `.exe` i only know how to start the "raw" .exe, i would like to do something like: `myProgram.exe file.txt`
This way the program could read the file as input. Unfortunatly the way i try to do this doesn't work, could you tell me how to do this properly?

Program i want to use on a file 
(**this is code from the book**, there is no int main() or anything else):

```
#include <stdio.h>

main()
{
    int c;
    while((c = getchar()) != EOF)
    {
         putchar(c);
    }
}

```

I am on Windows 8.1, using cl ( visual studio compiler), version 19 x64.