Entry 4905
os.open()
Submitted by anonymous
on June 19, 2010 at 9:53 a.m.
Language: Python. Code size: 137 bytes.
import os fd = os.open( r"c:\temp\out.txt", os.O_RDWR|os.O_CREAT|os.O_TRUNC ) os.write(fd, "Hello file descriptor") os.close(fd)
This snippet took 0.00 seconds to highlight.
Back to the Entry List or Home.