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)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


openni_camera
Author(s): Patrick Mihelich, Suat Gedikli, Radu Bogdan Rusu
autogenerated on Thu Aug 15 2013 10:49:03