in reply to Opening a file for reading or writing (was: Newbie)
try:open(FILE, "height.txt") or die "file can't be opened: $!"; or: open(FILE, "<height.txt") or die "file can't be opened: $!";
notice the difference in the file operator
'>' is for writing to
'<' is for reading from
''(nothing) is default read from
2001-03-19 Edit by Corion : Added CODE tags
|
|---|