For a text file on the screen it is not possible to get this information. What you can do is reading the text file using the command {{ImportFile. The content of the file can then be investigated by using {{DoImport and the several string commands the Recorder offers.