Time to read the API doc.
getText() returns a String
edit() takes a File object

A String object can not be converted (by the compiler) to a File object. The programmer will have to write the...