How do you append to the file instead of overwriting it? Is there a special function that appends to the file?
Answer
with open("test.txt", "a") as myfile:
myfile.write("appended text")
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...
No comments:
Post a Comment