Hello there!

I know how to open, write to, and close a file in visual basic, but how can I tell if a file was opened sucessfully?

If there's an error opening the file, I would like to display a message box indicating so.

Thanks in advance!

Matt