| 1 | use strict; | ||
| 2 | |||
| 3 | package OSS::Fileops; | ||
| 4 | |||
| 5 | sub new | ||
| 6 | { | ||
| 7 | my($class) = shift; | ||
| 8 | my($self) = {}; | ||
| 9 | bless($self,$class); | ||
| 10 | return($self); | ||
| 11 | }; | ||
| 12 | |||
| 13 | sub read_file | ||
| 14 | { | ||
| 15 | my($self) = shift; | ||
| 16 | my($filename) = shift; | ||
| 17 | open(FILE, $filename) or die($!); | ||
| 18 | my(@file) = <FILE>; | ||
| 19 | close(FILE); | ||
| 20 | return(@file); | ||
| 21 | }; | ||
| 22 | |||
| 23 | 1; |