Added doctest for textFile method in context.py

Doctest added for method textFile in context.py