Generation

class from descriptionSun, 30 Jul 2023

file input row string

class FileInputRowString(object): def __init__(self, file, sep=None): self.file = open(file, 'rb') self.sep = sep def __iter__(self): return self def next(self): return self.file.readline().rstrip(os.linesep).split(self.sep)

Questions about programming?Chat with your personal AI assistant