The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Name

SPVM::Sys::IO::FileStream - FILE structure in the C language.

Description

The Sys::IO::FileStream in SPVM represetns the FILE structure in the C language.

Usage

  use Sys::IO::FileStream;

Details

This class is a pointer class. The pointer the instance has is set to a FILE object.

Fields

closed

has closed : ro byte;

The file stream is closed.

is_pipe

has is_pipe : ro byte;

The file stream is opend as a pipe stream.

no_destroy

has no_destroy : ro byte;

Do not call the "DESTROY" method.

Instance Methods

DESTROY

method DESTROY : void ();

The destructor.

If the "no_destroy" field is a true value, nothing is done.

If the "closed" field is a false value, the file is closed.

If the the "is_pipe" field is a true value, the file is closed by the pclose function, otherwise closed by the fclose function.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License