What exception is thrown in the .NET Framework when trying to write a file but the disk is full?
Does Windows buffer file writes?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will get an IO exception:
The
System.IOlibrary handles the actual tasks of reading and writing to disk and wraps them in managed code, so you shouldn’t get any unmanaged exceptions using them.It’s also worth trying this (with one of those shoddy small USB sticks they give out everywhere) to see what happens with your code – that’s usually the best way of finding out this sort of thing.