test_file.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 
00003 import shutil
00004 import tempfile
00005 
00006 tmp = tempfile.TemporaryFile(mode='r+')
00007 tmp.write("This is a test\n")
00008 f = open("my_file.txt", 'w')
00009 tmp.seek(0)
00010 shutil.copyfileobj(tmp, f)


openni_camera
Author(s): Patrick Mihelich, Suat Gedikli, Radu Bogdan Rusu
autogenerated on Wed Aug 26 2015 15:08:49