One or Two Try … End Try for two TextOutputStream(s) ?

In fact, the situation is:

I have a Log - History text file and a Log - Error text file that append data in a Do … 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 Try … End Try for the two TextExportStream.

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…