I have a .com domain with one subdomain. I want the .com domain to be fully indexed by the search engines but none of the content on the subdomain to be indexed.

Does anyone know what the robots.txt file should look like to achieve this?

- the .com domain uses www[.]domain[.]com whereas the subdomain is subdomain.domain.com ...if that makes any difference

Thank you for any advice