When I obtain a text file from a source will it be possible to determine which editor was used to create it assuming that the creator has not removed that kind of metadata from the file. If yes how can I do that?
The kind of metadata you are talking about is added usually by document editors like openoffice and microsoft office, but not by editors like vim, emacs, gedit, notepad etc. And thats because those are plain text documents. They do not have a special format.
There are exceptions though, like if you create a HTML document, then the text-editor might add a generator meta tag, but as a general rule, text editors do not add meta data.
So in a general case, its not possible to figure out which editor was used for a particular file.