Skip to content

try/catch around file reading #1

@wspr

Description

@wspr

I should be using something like this instead (thanks Zebb):

try
 fh = fopen([p.Results.filename,'.eps'],'w');
 fwrite(fh,epsfile);
 fclose(fh);
catch                %#ok -- this is required for r2007a support
 err = lasterror;   %#ok
 if fh > 0
   fclose(fh);
 end
 rethrow( err );
end

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions