only print the file content if file exists