Continue loop after catch ?

Feb 14 2005 7:02 AM
Hi, I have a small routine that copies some files from a PocketPC to the desktop (I use the Desktop.Communication.dll from OpennetCF) But when a file already exists on the desktop and is read only the loop throws an exception (not because the file exists but because it cannot be overwritten)... after the messagebox that informs the user has been displayed I want to be able to resume my foreach loop. I have no idea of what to write in the catch block ? In the old days I used Resume Next in VB but I cannot find an alternative in C#. I have already tried continue but it fails to do what I was hoping it did :-( Anyone have an idea ? Kind regards, ShAdOwHuNtEr

Answers (5)