Input from a file in CodeBlocks

Hi!
I'm using Codeblocks 13.12 in Windows. I want to compile and run c++ files with the console inputs are automatically extracted from a file. More importantly, I do not want to change the code to read files. I just have written codes to read them from the console. Could someone please help me. Is there anyway to do this? Any change in settings?

Thank you!
OK. Thank you MiiNiPaa. But where should I put that argument in CodeBlocks? That's what I need to know. I'll be much grateful if someone could help me.
Topic archived. No new replies allowed.