File handling

bcopy chmod close eof fexist fsize ftime glob mkdir [open] read rename rmdir twiddle umask unlink write writeb

Liam's BitchX Command Reference

BitchX scripting function $open()

open
Function
$open()
Notes
Usage
$open(filename mode)
Returns
File handle (a number) for the opened file, if successful. Nothing if unsuccessful.
The mode argument can be R (or r), for a read-only file, or W (or w) to be able to write the file. Put a B (or b) after the mode for binary I/O.
Example
$open($ctoolz_dir/BitchX.quits R) returns a number (should, if it exists.


previous: onchannel next: open