in reply to To die or not to die
Ie, open(INPUT, "<input.txt") || NoGo(error=>"Could not open file input.txt for reading", exit=>1);
That way you can report errors to yourself or the user and terminate the program if necessary with a minimum of hassle. This is best if you are only worried about success or failure and not the exact cause.
SpaceAce
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: To die or not to die
by bprew (Monk) on Oct 28, 2002 at 20:46 UTC | |
by merlyn (Sage) on Oct 28, 2002 at 20:51 UTC |