KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How can I remove the ^M character from a text file (at the end of line) in a Python script? I did the following, and there are ^M at every line-break. file = open(filename, "w") file.write(something)
Tags (comma-separated)
Save Edits
Cancel