Changeset 11021


Ignore:
Timestamp:
12/02/11 14:05:50 (13 years ago)
Author:
Mathieu Morlighem
Message:

Added error message if config file could not be open

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/model/petscversion.m

    r9827 r11021  
    1313%go through the file, and recover the line we want
    1414fid=fopen(configfile,'r');
    15 while(1),
     15if(fid==-1), error(['could not open file: ' configfile]); end
     16
     17while(true),
    1618        tline=fgets(fid);
    1719        if ~ischar(tline), break, end
Note: See TracChangeset for help on using the changeset viewer.