def from_file ( cls , path , encoding , dialect , fields , converters , field_index ) : return cls ( open ( path , 'r' , encoding = encoding ) , dialect , fields , converters , field_index )
how to open a text file as a string inpython
Read delimited text from a text file .
def from_file(cls, path, encoding, dialect, fields, converters, field_index):
        """Read delimited text from a text file."""

        return cls(open(path, 'r', encoding=encoding), dialect, fields, converters, field_index)