Next Lightweight Databases 18

Fundamental Operations

Read

        read(FH, my($buffer), $length);
        $record = <FH>;

Write

        print FH $buffer;

Truncate

        truncate FH, $length;
        truncate $filename, $length;


Next Copyright © 2003 M. J. Dominus