NAME

RackMan::File - Generic class to represent a file

SYNOPSIS

use RackMan::File;

my $file = RackMan::File->new(name => "lipsum.txt");
$file->add_content("Lorem ipsum dolor sit amet");
$file->write;

DESCRIPTION

This module is a Moose-based class to represent a file.

METHODS

new

Create and return a new object

add_content

Append content

fullpath

Return the full path of the file

read

Read the file from disk in memory

write

Write the content of the file on disk

ATTRIBUTES

name

String, name of the file

path

String, path to the file

content

String, content of the file

AUTHOR

Sebastien Aperghis-Tramoni