My Tech Notes
Search This Blog
Python: read string from file
with open ("file.txt", "r") as file: # merge to a single line data=file.read().replace('\n', '')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment