TextEditor class, Reading file and tabs