IndieRunner::Io(3p)

NAME
IndieRunner::Io - filesystem input/output for IndieRunner

SYNOPSIS
  use IndieRunner::Io;

  write_file($data, $filename);
  read_file_lines($filename);

DESCRIPTION
General use methods for file input/output operations.

write_file($data, $filename)
    Write $data to $filename. Creates the path if it doesn't already exist. Fails if $filename already exists.

read_file_lines($filename)
    Returns data from $filename. Fails if $filename doesn't exist. This is preferred for files divided into lines, like text files.

read_file_raw($filename, $length = 0)
    Returns data from $filename. Fails if $filename doesn't exist. If $length is 0 (the default), the whole file is read. Otherwise, it is read for $length number of bytes. This is preferred for binary files.

AUTHOR
Thomas Frohwein <thfr@cpan.org>

COPYRIGHT
Copyright 2022-2025 by Thomas Frohwein <thfr@cpan.org>

This program is free software; you can redistribute it and/or modify it under the ISC license.

POD ERRORS
Hey! The above document had some coding errors, which are explained below:

Around line 77:
    '=item' outside of any '=over'