Name

SPVM::IO - File IO, Sockets, Select/Polling.

Description

Classes in IO distribution in SPVM has methods to manipulate File IO, Sockets, Select/Polling.

Modules

Class Methods

open

static method open : IO::File ($open_mode : string, $file_name : string);

Opens a file stream.

This method just calls IO::File#new method given $file_name $open_mode, returns its return value.

Exceptions:

Exceptions thrown by IO::File#new method could be thrown.

opendir

static method opendir : IO::Dir ($dir_path : string);

Opens a directory stream.

This method just calls IO::Dir#new method given $dir_path and returns its return value.

Exceptions:

Exceptions thrown by IO::Dir#new method could be thrown.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License