2008-06-03から1日間の記事一覧

オブジェクト指向でファイルIO(IO::File)

OOでファイルIOを行うモジュールIO::Fileの基本的な使い方 オープンとクローズ use IO::File; my $fh = IO::File->new(); $fh->open("sample.txt", "r") or die $!; $fh->close; 読み込み 1) 1行読み込み use IO::File; my $fh = IO::File->new("sample.txt"…