View Full Version : Checking if input file exists
W.E.T.
04-28-2004, 09:27 AM
I let the user enter a name of an input file, is there a way to use my own valiadtion if the file does not exsist, instead of the the program throwing up a run-time error and exiting the program???
Thanks
Nick
tzeis
04-28-2004, 06:26 PM
There are a couple of ways to do validation. You could either use the INQUIRE statement, or add a status variable to your OPEN statement. If an error occurs, the program will not terminate, the error will be reflected in the status variable.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.