test_file.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 import shutil
4 import tempfile
5 
6 tmp = tempfile.TemporaryFile(mode='r+')
7 tmp.write("This is a test\n")
8 f = open("my_file.txt", 'w')
9 tmp.seek(0)
10 shutil.copyfileobj(tmp, f)


openni_camera
Author(s): Patrick Mihelich, Suat Gedikli, Radu Bogdan Rusu
autogenerated on Thu Apr 21 2022 02:37:23