Troubleshooting Exceptions: System.IO.IOException 

A IOException is thrown when an I/O error, such as failing to read from or write to a file, occurs.

Associated Tips

  • Make sure the file and directory exist.
    Verify that the directory you are trying to read from/write to exists. Verify that the file you are trying to read from exists.

Remarks

IOException is the base class for exceptions thrown while accessing information using streams, files and directories.

The Base Class Library includes the following types, each of which is a derived class of IOException:

See Also

Tasks

How to: Find Out More About an Exception with the Exception Assistant
How to: Create CLR Console Applications

Reference

IOException