What I\'m trying to do is basically:
./myProgram < myData.txt
While I\'m debugging with CLion IDE. I just can\'t find the option to do so.
For me, CLion creates the executable in a file called 'cmake-build-debug'. Check out my file structure in the pic.
Then, I just opened up my terminal and went to the directory containing the executable and used this command to pipe in the text file:
./FirstProject < ../hw1.txt