trying to get the print character function to print a file