Writes the contents of string to the file
f = open('/tmp/workfile', 'r+') f.write('0123456789abcdef') print f.read(1) print f.read(1) f.close()