Cool File & Directory Modules IO::File 14 of 69 : prev | index | next

IO::File

Also supports the Fcntl common standard flags:

O_RDONLY Read only
O_WRONLYWrite only
O_RDWRRead and write
O_CREATCreate the file if it doesn't exist
O_EXCLFail if the file already exists
O_APPENDAppend to the file
O_TRUNCTruncate the file
O_NONBLOCKNon-blocking access

For example:

    $fh = new IO::File "file", O_WRONLY|O_APPEND;

© 2003 Barbie - barbie@missbarbell.co.uk contents http://birmingham.pm.org/