Name

SPVM::Sys::IO::FileStream - the class for the FILE type in 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 C language.

This is a pointer class.

Fields

closed

has closed : ro byte;

The file stream is closed.

no_need_free

has no_need_free : ro byte;

The file stream is not needed to be freed.

Instance Methods

method DESTROY : void ();

The destructor.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License