I have a c# program saving data to a usb drive, but if the usb is unplugged, there will be a crash. Is there any good way to handle this exception? Thanks!
Asked
Active
Viewed 63 times
1 Answers
1
The code you are using to write will likely raise an exception which you should be able to capture and respond to accordingly using a try/catch block.

dinomix
- 956
- 4
- 5