Well - I'd say the phrase "using functions only" might indicate the wrong direction, since implementation of a process is essentialy independent of whether functions are used or not.
Actually, now we've gotten this far, your question lacks essential detail:
- Get text off which part of the screen? All of it? The part with bitmaps? The part without bitmaps? How much text is involved?
- Compare to dynamic data - what kind of dynamic? Where is the data?
- And finally - "Print the results to a .txt file" - not hard to answer by reference to the manual.