Does an IO exception get thrown if the disk is full?
.net, c#
Solution
You will get an IO exception:
System.IO.IOException: There is not enough space on the disk.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
The `System.IO` library 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.
Problem
What exception is thrown in the .NET Framework when trying to write a file but the disk is full? Does Windows buffer file writes?