Style or design question

  • Thread starter Thread starter Enkidu
  • Start date Start date
E

Enkidu

If you have a *small* console application that perhaps opens and reads a
file, is it better to handle exceptions or test the returns from the
opens, etc up front? Or is it six of one and half a dozen of the other?

Cheers,

Cliff
 
Exceptions handling is proper way. Function might be not reliable enough
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top