Name

SPVM::Sys::IO::FileStream - the class for the FILE type in the C language.

Usage

use Sys::IO::FileStream;
use Sys::IO;

my $file = "foo.txt";

# Sys::IO::FileStream
my $file_stream = Sys::IO->fopen($file, "rb");

Description

Sys::IO::FileStream is the class for the FILE type in the C language.

This is a pointer class.

Fields

closed

has closed : ro byte;

The file stream is closed.

no_close

has no_close : ro byte;

If this field is set to a true value, the file stream must not be closed.

Instance Methods

method DESTROY : void ();

The destructor.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License