I need to be able to debug and redirect input to stdin in CLion, but I can't find a way to do this. The only solution I can think of is to set stdin to be the file.
I looked into using freopen() but this seems to be invalid in C99, which I have to use for the class I'm in.