check_file function

Explore a file