In fact, the situation is:
I have a
Log - History text file and a
Log - Error text file that append data in a
Loop where I download files.
Because I have troubles (not in the
TextOutputStream process), I looked more carefully my code and discovers that I have only one
End Try for the two
Is it OK ?
It really depends on how you want to respond to errors. I don’t think anyone here can answer that for you without knowing your intentions and probably seeing some code.
If you wrap each TextExportStream you can catch and handle each error separately… If you wrap your whole code in one try, you will end up in the same catch block and will need to figure out what happened to get to the error…