Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lines = open('/Users/y1275963/Dropbox/asmcodes/asmcodes_a28/615.asm', 'r').readlines()
- text_file = open("/tmp/Output.txt", "w")
- for item in lines:
- sep = ';'
- item_all = item.split(sep, 1)
- if len(item_all) > 1 :
- item = item_all[0]
- text_file.write(item)
- text_file.write('\n')
- else:
- text_file.write(item)
- text_file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement