slackget10::Fileslackget10::File is a Perl class to manage files. | |
Download |
slackget10::File Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- DUPUIS Arnaud
- Publisher web site:
- http://search.cpan.org/~dupuisarn/slackget10-0.12c/lib/slackget10/Base.pm
slackget10::File Tags
slackget10::File Description
slackget10::File is a Perl class to manage files. slackget10::File is a Perl class to manage files.SYNOPSISslackget10::File is the class which represent a file for slack-get.Access to hard disk are saved by taking a copy of the file in memory, so if you work on big file it may be a bad idea to use this module. Or maybe you have some interest to close the file while you don't work on it. use slackget10::File; my $file = slackget10::File->new('foo.txt'); # if foo.txt exist the constructor will call the Read() method $file->add("an examplen"); $file->Write(); $file->Write("bar.txt"); # write foo.txt (plus the addition) into bar.txt $file->Close(); # Free the memory ! $file->Read(); # But the slackget10::File object is not destroy and you can re-load the file content $file->Read("baz.txt"); # Or changing file (the object will be update with the new file)The main advantage of this module is that you don't work directly on the file but on a copy. So you can make errors, they won't be wrote until you call the Write() method Requirements: · Perl
slackget10::File Related Software