1 2 3 4 5 6 7 8 9
import sys import file_test file_test.nfile(sys.stdout) cstdout = file_test.GetStdOut() file_test.nfile(cstdout) file_test.nfile_name("test.dat")