Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def convert(in_file, out_file):
- name = ""
- for line in in_file:
- line = line.strip()
- print(line)
- if line == "":
- continue
- if line.startswith('"'):
- name = line.strip('"')
- print("NAME:: " + name)
- else:
- out_file.write("{0}\n".format(','.join([name] + line.split("\t")) ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement