Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Python: How write to a Memory File

Python: How write to a Memory File
{filelink=16361}

import StringIO
file = StringIO.StringIO()
data="Welcom to home"
data1="
Python" * 1000
file.write(data)
file.write(data1)
print file.getvalue()

Users who found this page were searching for:

  • python write list data in file
  • python write to memory
  • python memory file
  • python write file to memory bytesio

No comments yet.

Leave a Comment