Fixed all the file input and output shenanigans

If you wish to run a program, input comes from the "input" line, output
goes to the output file from the "output" line, and program is located
as "programName" and placed in the release or debug folder of your
application you are running