def read_text_file( file_path: str, mode = 'r' ) -> str:

    """reads text file at the given file_path, returns the contents"""

    f = open(file_path, mode)
    string = f.read()
    f.close()

    return string