To set the arguments, right-clock on the project and
select
Properties.
This brings up the
Project Properties window.
Select
Run and then
Run Command.
These are the arguments passed to main
argv
. Add the name of your file at the end.
Again, right-clock on the project but this time select New followed by Empty File.... This brings up the New Empty File window. Give your file the same name you just typed at the end of the run command. This will create the file and bring up a new window in which you can edit contents of the file.