Expand description
I/O utilities for SciRS2
This module provides utilities for input/output operations.
Functions§
- create_
directory - Creates a directory if it doesn’t exist
- create_
file - Opens a file for writing
- directory_
exists - Checks if a directory exists
- file_
exists - Checks if a file exists
- filesize
- Returns the file size in bytes
- formatsize
- Pretty-prints a file size with appropriate units
- open_
file - Opens a file for reading
- read_
lines - Reads a file line by line
- read_
to_ bytes - Reads an entire file into a byte vector
- read_
to_ string - Reads an entire file into a string
- write_
bytes - Writes bytes to a file
- write_
string - Writes a string to a file