added Ternary statement to print the File.