def load_file_2_list(fname, mode='r') -> list:
    """
        Open SQL script file.

        Args:
            fname (str): File name to open.
        Returns:
            list[str]: List of lines containing substr.

        -----------
        Function selftests:
        >>> len(tty2list('./samples/RAID.Slot.1-1.log'))
        6981
        >>> type((tty2list('./samples/RAID.Slot.1-1.log')))
        <class 'list'>

    """
    with open(fname, mode) as file:
        f_contents = []
        f_contents = file.readlines()  #.decode('utf-16')
        # clean = []
        # for line in f_contents:
        #     clean += line.replace('0xff', 'n')
        #     # print (len(clean), line)
        return f_contents