def lines(file_path, strip=True):
    """
    Read file line by line

    Parameters
    -----------
    file_path: str
        File path
    strip: bool
        Whether or not strip spaces from each line

    Yields
    ---------
    line: str
        Read line.
    """
    with open(file_path) as f:
        for line in f:
            if strip:
                line = line.strip()
            yield line
