Change prompt to ". "
Fix #1 (Set stdin with $filename)

$inputfile ./program
should work like
./program <inputfile or <inputfile ./program
in bash