How to get content from 'text editor'

I cant get content from ‘text editor’:
Blender.Text.Get(“XXXX”).readline()
in 2.4X

How to do the same thing in 2.5X ?

Someone can help me solve this problem?
thanks!

Have resolved