Split up show_file into smaller methods