They basically do the same thing... Robots.txt is a single file where you can consolidate bot access or alternatively you can use the robot meta tag on specific pages.... Saying that a lot of bots do not respect robots.txt so alternatively if you are seeking to block bots you could also use .htaccess which enforces it at server access level...