Using Input & Output files

How to enter the inputs using input_file.txt & how to show the output using output_file.txt in codeblocks?

Hey you have to add this
#ifndef ONLINE_JUDGE
freopen(“input_file.txt”, “r”, stdin);
freopen(“output_file.txt”, “w”, stdout);
#endif
as first thing in the main.