Login  Register

File I/O errors

Posted by Douglas Benn-2 on Jun 30, 2010; 10:50pm
URL: http://imagej.273.s1.nabble.com/File-I-O-errors-tp3687766.html

Dear Colleagues,

I am writing a macro to detect whether a Results file (  .xls) is present in a directory to prevent an error when using the Open(filename) command. I wondered if there is a way of testing in a macro the return value of the Open() command to see if it has failed to prevent the Directory window from opening?

Thank you.

Douglas

Dr Douglas K Benn, BDS,DDS, M.Phil., Ph.D., Dipl. Dental Radiology (Royal College of Radiologists, England).
Professor and Director of Oral & Maxillofacial Radiology
Dept of General Dentistry
Creighton University Dental School
2802 Webster St, Boyne 210
Omaha
Nebraska 68178

Tel: (402)280 5025
Fax: (402)280 5094