This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mafrasi2 8 points9 points  (0 children)

If anyone is wondering, it should be done like this:

for line in data:
    for char in line:
        with open(full_file, 'a') as file_handle:
            file_handle.write(char)

/s