Method Stdio.File()->create()
- Method
create
Stdio.File Stdio.File()
Stdio.File Stdio.File(stringfilename)
Stdio.File Stdio.File(stringfilename,stringmode)
Stdio.File Stdio.File(stringfilename,stringmode,intmask)
Stdio.File Stdio.File(stringdescriptorname)
Stdio.File Stdio.File(intfd)
Stdio.File Stdio.File(intfd,stringmode)- Description
There are four basic ways to create a Stdio.File object. The first is calling it without any arguments, in which case the you'd have to call open(), connect() or some other method which connects the File object with a stream.
The second way is calling it with a
filenameand openmode. This is the same thing as cloning and then calling open(), except shorter and faster.The third way is to call it with
descriptornameof"stdin","stdout"or"stderr". This will open the specified standard stream.For the advanced users, you can use the file descriptors of the systems (note: emulated by pike on some systems - like NT). This is only useful for streaming purposes on unix systems. This is not recommended at all if you don't know what you're into. Default
modefor this is"rw".- Note
Open mode will be filtered through the system UMASK. You might need to use
chmod()later.- See also