Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new_line = ""
- with open('C:\\Users\\Pacho\\Desktop\\cam file.txt', 'r') as f:
- for line in f:
- new_line += line.strip() + " ;\n"
- f.close()
- with open('C:\\Users\\Pacho\\Desktop\\cam file.txt', 'w') as f:
- f.write(new_line)
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement