def loadEntireTxtFile(filename):
    """
    Load entire file (text mode) and return its content.
    """
    rf = open(filename, "rU")
    try:
        result = rf.read()
        return result
    finally:
        rf.close()