In <[EMAIL PROTECTED]>, James Stroud wrote: > If you are using md5sum, tou can grab the md5 and the filename like such: > > myfile = open(filename) > md5sums = [] > for aline in myfile.readlines(): > md5sums.append(aline[:-1].split(" ",1))
md5sums.append(aline[:-1].split(None, 1)) That works too if md5sum opened the files in binary mode which is the default on Windows. The filename is prefixed with a '*' then, leaving just one space between checksum and filename. > myfile.close() Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list