How does the robots.txt file help me control Google's access to my website?

The robots.txt file allows you to specify which parts of your website should not be crawled by search engine bots, including Googlebot. This prevents certain pages or files from being indexed and appearing in search results.