Oleg Broytmann wrote: > BUFSIZE = 16*1024 > def process_file(self, f): > if type(f) == type(''): # If f is string - use it as file's > name > infile = open(f, 'r') > [...] Please make that 'rb'. Robert Amesz