from typing import Union
from pathlib import Path


def read_file(file_path: Union[str, Path]):
    """read text file and return file content as a str 
    """
    with open(file_path) as f:
        return f.readlines()