dean wrote: > Hello Group: > > Hopefully someone can answer my question. > > I have a unix shell command that I would like to emulate in python. > The command is FOLD. I am scanning a file that contains a stream of > data with a record size of 242 bytes but no record delimiters. There Have you looked at the 'struct' module?