2006年02月08日
ファイル(3)
- ikepon
- 2006年02月08日
- コメントする
- トラックバック (8)
- カテゴリー:Perl
ファイルに関して説明します。
open (ファイルハンドラ名, ファイル名)
ファイル名のファイルをファイルハンドラに結びつけてオープンします。
次のファイルをsample131.plという名前で保存します。
open(FILE, "nofile.txt") || warn "ファイルが開けません$!\n";
while (<FILE>) {
print;
}
close(FILE);
print "終了します。\n";
実行結果は、次の様になります。
> perl sample131.pl ファイルが開けませんNo such file or directory 終了します。
Trackback on "ファイル(3)"
以下8件のトラックバックはこのページのエントリー"ファイル(3)"を参照しています。
このエントリーのトラックバックURL:
» Java Internet Casino
- 2006年08月27日 04:25
- from Java Internet Casino
Internet gambling Piccadilly internet ga... [続きを読む]
» Medical Insurance
- 2006年08月29日 17:50
- from Medical Insurance
Dental insurance doltish dental in... [続きを読む]
» Lortab from us.
- 2007年04月13日 05:25
- from Lortab drug.
Lortab dosages. Buy lortab. Lortab. Lortab elixir. [続きを読む]
"ファイル(3)"へのコメントはまだありません。