Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with catch and finally

 
Angela lewis
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


If Hello.txt does not exist then the output would be

No such file found
Doing finally
-1

Why isn't it
No such file found
Doing finally
-1

Thanks
 
Swamy Nathan
Ranch Hand
Posts: 187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something seems to be wrong with the question (I think)?
 
Looluo Zhu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the question should be

No such file found
Doing finally
0

Why isn't it
No such file found
Doing finally
-1


and this thread has the answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic