Get file and set editor mode