Automatic text input


How can I make Clion behave like online coding platforms like codechef. I want that as soon as I run a program clion automatically inserts a predefined input into the console so that I do not have enter it again and again.

1 comment
Comment actions Permalink


In CLion 2020.1 EAP we've implemented input redirection: So now you can redirect input from a file to stdin of your application. Hope that helps in your scenario.


Please sign in to leave a comment.