Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
test
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 Mon Jun 10 2019 14:15:53