If you find a file in your root that doesn't belong there, your site has been hacked. Do you or your hosting company have a full backup of your site? The fastest and most sure way to repair your site is to restore from a backup made before the hack.
Without a backup your only solution is to repair the site. Follow this guide.
When you're done, you may want to implement some (if not all) of the recommended security measures.