C# Corner

Related resources for System.IO.
  • Playing With File I/O Using C#8/28/2019 11:51:30 PM. In this article, you will learn about the basics of File I/O using C#. We are going to discuss the 3 classes - Path, Directory & File - to work with the file-system.
  • Export ASP.NET DataGrid to Excel5/10/2019 4:28:55 AM. Export to Excel is one of the most common functionalities required in ASP.NET pages. Export a datagrid to Excel.
  • Capturing File Information1/29/2019 9:11:56 AM. This article describes a simple approach to capturing and displaying file and file version information.
  • Delete A directory In C#8/30/2018 12:08:26 AM. How to delete a directory in C# and .NET. The System.IO.Directory class in the .NET Framework class library provides static methods for creating, copying, moving, and deleting directories and subdirec
  • Create ZIP (System.IO.Compression) From WinForm Application6/28/2018 2:13:26 AM. Mostly ZIP extension files are called compressed file of file(s). We create zip from various program (UI) or via command utility.
  • File I/O Using C#1/11/2014 1:56:01 PM. In this article, you will learn how to work with classes in the System.IO namespace for reading data from and writing data to files.
  • How To Compress and Decompress Data12/4/2013 3:53:23 PM. This article shows how to compress and decompress our data.
  • Line Count Utility in VB.NET11/10/2012 2:13:21 AM. This utility is for counting number of code lines in a Visual Studio Project. It returns the number of code lines and file names which are in the project folders.
  • IP Lookup program in VB.NET11/10/2012 1:52:37 AM. This is an IP look up program that uses VB.NET Windows Forms and IPHostEntry to resolve the DNS request.
  • File Tampering Detection in VB.NET11/8/2012 7:11:59 AM. This article describes an easy approach to determining whether or not two files are exactly the same.
  • Tutorial: Working with Files and Directories10/13/2012 3:36:54 AM. One of the rich experiences in working with .NET is a huge collection of Base Class Libraries .
  • Output ASP.NET Page to HTML10/3/2012 11:28:50 AM. There are various reasons why it would be more appreciative to have the html page to be served to client.
  • Working With Drives and Directories in ASP.NET5/24/2012 9:53:42 PM. In this article we will discuss how to interact with the File System, Drives and Directories and how we get the path details.
  • Introduction to New Methods in System.IO.File in .Net 4.05/15/2012 1:51:43 PM. In this article we are looking the improvements made as part of .NET 4.0 which made the file handling more flexible and fast using File class.
  • Using Memory-Mapped Files5/13/2012 3:00:13 AM. MemoryMappedFile is an interesting new class in version 4.0 of the .NET Framework which resides in the System.IO.MemoryMappedFiles namespace.
  • DriveInfo Class in C# with an Example12/16/2011 10:59:18 PM. The DriveInfo class in the System.IO namespace provides a way to get drive details.
  • Virtual Photo Album in C#4/5/2010 1:28:52 AM. This application called "Virtual Photo Album". I didn't use any third party components, so it should be easy for you to download the code and play with it. I will try not to use any third party components while I am learning C#.
  • Single instance of application in C#3/25/2010 8:12:04 AM. There is some application that we want that only single instance of application works at a time. So here in this article is the logic for doing that.
  • File Tampering Detection3/6/2007 12:31:43 AM. This article describes an easy approach to determining whether or not two files are exactly the same.
  • Image Resizing : Part II1/31/2007 4:35:09 AM. In my first article Image Resizing and FTP, I showed how I resize my digital camera pictures and FTP them to the web. I received a couple of requests to share the code for the image gallery on my web site that I use to view them so here it is.
  • Find Files in C#1/30/2007 4:48:07 AM. I have developed a small application in c#, which helps in searching u'r hard disk for files of the desired extention.
  • Working with System.IO.Directory Class in C#8/19/2006 2:38:23 AM. This article is focused on understanding the Directory class of System.IO namespace.
  • Meal Scheduler in C#2/6/2006 6:23:35 AM. In this application once you enter your meal timings. A message box will appear on the screen while you are working and remember you about your meal with light sound.
  • Multi-threaded Web Applications - Case I: Search Engine1/31/2006 4:24:41 AM. This article is the first of the series of 4. I will demonstrate the use of threading in web applications by implementing a simply search engine. The following 3 articles in the series will be a Port Scanner, a Reverse DNS and a Web Hammer respectively.
  • A Simple Contacts List for Pocket PC1/31/2006 1:55:34 AM. I have implemented a simple contact list application that is capable of adding and viewing contact details.
  • Sticky Notepad1/19/2006 7:05:18 AM. I wanted to experiment with writing a program that would run from the "System Tray" of window (that's where you have the date displayed...) since that's not possible with pure Java.
  • Building Dynamic Service in C#1/15/2006 11:38:12 PM. This is a service that will run an application, and can be used over an over without hard coding any information.
  • Meal Scheduler in C#1/13/2006 5:15:24 AM. This service reminds you when it time to eat your lunch, BF or dinner.
  • Format DateTime Values in XML Extracted From DataSet 1/4/2006 7:18:51 AM. In this article we'll see how to specify the format of DateTime values extracted from the ADO.NET DataSet and to verify we will write formatted contents in xml file.
  • Auto Compiler12/30/2005 11:24:01 PM. This is a utility to make it easier to compile from the command line. One of the problems with using the command line.
  • C# IRC Bot12/28/2005 2:26:58 AM. This is a very simple program that establishes a connection to irc server, joins a channel and greets every nick that joins.
  • Simple Web File Download12/28/2005 1:53:49 AM. This is a simple program that shows how to download files from the web and save them. The program uses the HttpWebRequest and HttpWebResponse classes to request and retrieve the requested file.
  • Socket Programming12/27/2005 7:01:32 AM. This is a simple Client/Server program showing the communication taking place between the client and the server.
  • PaintBrush in C# - II12/26/2005 10:59:07 PM. This is a PaintBrush Application. In this Paintbrush user can draw some images and he can save the images in a persistence storage and later time can retrive the images.
  • Use CurrencyManager and MemoryStream to Display Images12/26/2005 5:13:03 AM. This article and attached sample code demonstrates you how to use the CurrencyManager and MemoryStream to display images. The current demonstration displays all the records of the employees with their company and the personal Information.
  • Missile Command .NET 12/25/2005 11:35:44 PM. Missile Command .NET is a simple video game written in C# using GDI+ for graphics. It's a tribute to the classic Missile Command game by Atari. I wrote this game to teach myself more about programming in C#.
  • Code Generator for Basic Stamp II Microcontroller12/16/2005 7:31:12 AM. The Basic II Stamp is programmed by the language its named after, Basic. The language is a combination of Basic syntax and built in key words that control the Basic Stamp II chip.
  • Using Currency Manager and MemoryStream to Display Images12/16/2005 12:33:28 AM. This article and attached sample code demonstrates you how to use the CurrencyManager and MemoryStream to display images.