[Tutor] using python for parsing

bob gailer bgailer at gmail.com
Wed Jul 10 16:57:11 CEST 2013


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



More information about the Tutor mailing list