Bootloader::FileIO(3) User Contributed Perl DocumentationBootloader::FileIO(3)NAMEBootloader::FileIO - functions for accessing files
PREFACE
XXX
SYNOPSIS
"use Bootloader::FileIO;"
"$files_ref = Bootloader::FileIO->ReadFiles(\@file_list);"
"$lines_ref = Bootloader::FileIO->ReadFile($file_name);"
DESCRIPTION
"$files_ref = Bootloader::FileIO->ReadFiles(\@file_list);"
Reads the list of files (passed as reference to an array of file
names). Returns a hash reference where the key is a file name and
value a reference to the list of lines of the file.
"$lines_ref = Bootloader::FileIO->ReadFile($file_name);"
Reads a file from disk and returns a reference to an array of lines
(with newline stripped). If the file could not be read, returns
undef.
"$lines_ref = Bootloader::FileIO->WriteFile($file, $lines);"
Writes file to disk. Returns 1 on success, 0 otherwise.
perl v5.10.0 2013-03-28 Bootloader::FileIO(3)