removed printFile and made main do printFile stuff

removed printFile function and made main do printFile functionality
except use getLine for path string instead of a parameter (because main
can't take parameters)