C# error messages are usually very clear to understand but sometimes it’s hard to find a good way to solve the problem. Especially with I/O operations we need some tricks.