prints from file to terminal