They are 2 completely different things! The Meta robot tag tells bots not to index individual files, where as robots.txt can be used to restrict access to entire directories.
It depends on what you want to do, if just restrict certain content inside pages or whole pages and folders.