In order to edit the files in a text editor, you must save the Maya scene files as .MA files. .MB files cannot be edited in the same manner.