NAME

EAI::File - read/parse Files from the filesystem or write to the filesystem

SYNOPSIS

readText ($File, $process, $filenames)
readExcel ($File, $process, $filenames)
readXML ($File, $process, $filenames)
writeText ($File, $process)
writeExcel ($File, $process)

DESCRIPTION

EAI::File contains all file parsing API-calls. This is for reading plain text data (also as quoted csv), reading excel data (old 2003 and new 2007+ format), reading xml data, writing plain text data and excel files.

API

readText

reads the defined text file with specified parameters into array of hashes (DB ready structure)

$File      .. hash ref for File specific configuration
$process   .. hash ref for process specific configuration and returned data (hashkey "data" -> above mentioned array of hashes)
$filenames .. array of file names, if explizit (given in case of mget and unpacked zip archives).
readExcel

reads the defined excel file with specified parameters into array of hashes (DB ready structure)

$File      .. hash ref for File specific configuration
$process   .. hash ref for process specific configuration and returned data (hashkey "data" -> above mentioned array of hashes)
$filenames .. array of file names, if explizit (given in case of mget and unpacked zip archives).
readXML

reads the defined XML file with specified parameters into array of hashes (DB ready structure)

$File      .. hash ref for File specific configuration
$process   .. hash ref for process specific configuration and returned data (hashkey "data" -> above mentioned array of hashes)
$filenames .. Array von filenamen, falls explizit array of file names, if explizit (given in case of mget and unpacked zip archives).
writeText

writes a text file using specified parameters from array of hashes (DB structure)

$File      .. hash ref for File specific configuration
$process   .. hash ref for process specific configuration and returned data (hashkey "data" -> above mentioned array of hashes)
writeExcel

writes an excel file using specified parameters from array of hashes (DB structure)

$File      .. hash ref for File specific configuration
$process   .. hash ref for process specific configuration and returned data (hashkey "data" -> above mentioned array of hashes)

COPYRIGHT

Copyright (c) 2023 Roland Kapl

All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the license can be found in the LICENSE file included with this module.