with open(fileName2, 'w') as w: [ w.write(line+'\n') for line in open(fileName).read().replace('\n,', ',').split('\n') if not line.startswith('!')] -- Bob Gailer 919-636-4239 Chapel Hill NC