
Language::Befunge::IP::lib::FILE - file operations

The FILE fingerprint (0x46494C45) allows to do file operations.

Create a new FILE instance.
Those operations act as r upon failure.
Close filehandle corresponding to $fid.
Delete file $path (a 0gnirts).
Read $line from filehandle corresponding to $fid,
and push back the file id,
as well as the line read and the $count bytes read.
Fetch current $pos within the file corresponding to filehandle $fid,
and push it back on the stack (as well as $fid again).
Open the file $path (a 0gnirts) with $mode,
storing $vec as the i/o buffer.
Push back $fid on the stack,
the filehandle id.
Mode can be one of:
Write $string to file corresponding to $fid.
Read $count bytes from file $fid and put it to i/o buffer.
Put back $fid on the stack.
Seek to position $pos in file $fid.
$mode can be one of:
Write $count bytes from buffer to file $fid.
Put back $fid on the stack.

Language::Befunge, http://www.rcfunge98.com/rcsfingers.html#FILE.

Jerome Quelin,
<jquelin@cpan.org>

Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.