Reputation: 278
I want to be able to read a file and add a string onto it line by line without having a line break in the middle.
text_file = open("read_it.txt", "r")
print text_file.readline() + "0123456789"
Outputs to
>>
text
0123456789
>>
I would like have it output to this format
>>
text0123456789
>>
Upvotes: 1
Views: 1499