In this article, I have explained about File input/output (I/O) handling operations in C# with an example to read, write data to a file and delete or copy the file using C# .NET Console application.
In this article, I am going to provide you code with explanation to read excel in C# using OLEDB OR using EPPlus OR using Interop in Console application.
In this article, I have provided working sample to connect to MySQL in C# using Visual Studio with Console application example.Also , how to insert new row in MySQL database in C# and Visual Studio.
To provide clear error details to user and prevent app crashes, sometimes you may need to create custom exception in C#, so in this article I have explained how you can create custom exception in C#.