Visual C# .NET » File IO

We have 33 File IO tutorials, you can see below:


Building a File Path with Path.Combine (.NET)


When using a variety of input methods to accept a file path and file name, the format of the results can vary. To avoid the problems of checking for path separator characters and adding or removing them as required, .NET provides a method to provide this.


Details    Read Tutorial    Views: 325    Rate: 0 (0 votes)    Nov 04 2007 - 17:55

Working with the System.IO.Directory Class in C#


A brief introduction to the .NET System.IO.Directory class


Details    Read Tutorial    Views: 1111    Rate: 3 (1 votes)    Mar 07 2007 - 15:56

Directory.CreateDirectory() method bug fixed


Fixing System.IO.Directory.CreateDirectory() security bug.


Details    Read Tutorial    Views: 435    Rate: 0 (0 votes)    Mar 07 2007 - 15:55

Obtaining (and managing) file and folder icons using SHGetFileInfo in C#


Article showing how to read file and folder icons from C#, and then building a management class to maintain file icons in up to two ImageList objects.


Details    Read Tutorial    Views: 550    Rate: 2 (1 votes)    Mar 07 2007 - 15:54

A recursive method for copying files to different volumes


This article describes a recursive method for copying files to different


Details    Read Tutorial    Views: 835    Rate: 0 (0 votes)    Mar 07 2007 - 15:53

File Information using C#


Getting information of Files and Directories


Details    Read Tutorial    Views: 1059    Rate: 4 (1 votes)    Mar 07 2007 - 15:53

Working with Archived files


Some time ago, I faced a different concept of file when I worked on a mainframe: one that holds multiple other files. Since then, I tried to reproduce this behavior in .NET.


Details    Read Tutorial    Views: 342    Rate: 0 (0 votes)    Mar 07 2007 - 15:51

File Processor


An article on processing a File using the FileSystemWatcher class


Details    Read Tutorial    Views: 409    Rate: 0 (0 votes)    Mar 07 2007 - 15:49

Retrieve detailed information of a File


The article shows how to get the detailed information of a file like comments, author...


Details    Read Tutorial    Views: 541    Rate: 4 (1 votes)    Mar 07 2007 - 15:45

Fast Binary File Reading with C#


Exploring the fastest way to read structures from a binary file in C#.


Details    Read Tutorial    Views: 1657    Rate: 0 (1 votes)    Mar 07 2007 - 15:44

Cabinet File (*.CAB) Compression and Extraction


How to implement creation and extration of MS CAB files.


Details    Read Tutorial    Views: 511    Rate: 3 (1 votes)    Mar 07 2007 - 15:43

#zlib - Modifying Archives


A way to modify Zip archives without extracting them completely.


Details    Read Tutorial    Views: 325    Rate: 0 (0 votes)    Mar 07 2007 - 15:39

Scan the Directory / Files (Calculating the size)


Scans through the directory recursively and calculates the total size.


Details    Read Tutorial    Views: 606    Rate: 0 (0 votes)    Mar 07 2007 - 15:37

Quick and dirty directory copy


Quick directory copy to another directory.


Details    Read Tutorial    Views: 529    Rate: 0 (0 votes)    Mar 07 2007 - 15:34

Cool File System Class with Thread Support - Easy To Use


An easy to use file system class supporting threads.


Details    Read Tutorial    Views: 288    Rate: 0 (0 votes)    Mar 07 2007 - 15:25

FolderSync class for .NET


A set of classes which can get differences between two folders and which can synchronize them according to basic rules


Details    Read Tutorial    Views: 367    Rate: 0 (0 votes)    Mar 07 2007 - 15:23

Function to copy a directory to another place (nothing fancy)


Simple C#/.NET tip to copy an entire directory tree to another directory


Details    Read Tutorial    Views: 684    Rate: 5 (1 votes)    Mar 07 2007 - 15:21

Create Icons for Folders in Windows Explorer, Using C#


This article describes how to assign an icon to a folder in Windows Explorer, using C#.


Details    Read Tutorial    Views: 328    Rate: 0 (0 votes)    Mar 07 2007 - 15:19

Directory Mirror using the FileSystemWatcher class


An application that monitors a directory and maintains a copy of it.


Details    Read Tutorial    Views: 325    Rate: 5 (1 votes)    Mar 07 2007 - 15:19

xDirectory.Copy() - Copy Folder, SubFolders, and Files


The .NET framework doesn\'t have a Directory.Copy() method. So I developed one myself.


Details    Read Tutorial    Views: 574    Rate: 0 (0 votes)    Mar 07 2007 - 15:18

WinSearchFile: how to search files on your PC


Sometimes the search engine integrated with Explorer doesn\'t work fine, especially when I try to find text contained into files, so I decided to build my own search program.


Details    Read Tutorial    Views: 359    Rate: 1 (1 votes)    Mar 07 2007 - 15:01

File System Enumerator using lazy matching


An efficient solution for finding files.


Details    Read Tutorial    Views: 306    Rate: 0 (0 votes)    Mar 07 2007 - 15:00

Ini Handler


Permits simple access to ini files


Details    Read Tutorial    Views: 326    Rate: 0 (0 votes)    Mar 07 2007 - 14:59

Handle multiple configuration files


Read and write any configuration file with ease


Details    Read Tutorial    Views: 236    Rate: 0 (0 votes)    Mar 07 2007 - 14:48

Working with Files in C#


File access can mean two different things in C#. The most obvious meaning is the storage and retrieval of data on the disk. A second meaning, however, involves the way that C# source code is grouped into source files.


Details    Read Tutorial    Views: 845    Rate: 1 (1 votes)    Jan 30 2007 - 18:25

Getting File Version Information


In this article, I\'ll show how to get file version information, using C#.


Details    Read Tutorial    Views: 477    Rate: 5 (1 votes)    Jan 30 2007 - 18:23

Decompress Zip files with Windows Shell API and C#


Use Windows shell API in C# to decompress Zip files, without showing the Copy Progress window.


Details    Read Tutorial    Views: 457    Rate: 0 (0 votes)    Jan 30 2007 - 18:16

Programmatically Checking and Setting File Types


When developing a Windows Forms application that loads documents, setting custom file types adds greatly to the professional feel of the software. This article explains how to programmatically check your file type is registered and register it if not.


Details    Read Tutorial    Views: 381    Rate: 0 (0 votes)    Jan 24 2007 - 13:25

Create a File-Compare Function in Visual C# .NET


This step-by-step article demonstrates how to compare two files to see if their contents are the same. This comparison looks at the contents of the two files, not at the file names, locations, dates, times, or other attributes. This functionality is similar to the MS-DOS-based Fc.exe utility that is included with various versions of Microsoft Windows and Microsoft MS-DOS, and with some development tools.


Details    Read Tutorial    Views: 636    Rate: 0 (0 votes)    Jan 17 2007 - 18:53

Adding Files to My Recent Documents


If an application provides the facility to use files, Windows users expect to see recently loaded items in the My Recent Documents section of their Start menu. This functionality is missing from the .NET framework 2.0 so the Windows API is used.


Details    Read Tutorial    Views: 399    Rate: 0 (0 votes)    Jan 17 2007 - 18:51

How to search files on your PC


Sometimes the search engine integrated with Explorer doesn\'t work fine, especially when I try to find text contained into files, so I decided to build my own search program.


Details    Read Tutorial    Views: 924    Rate: 0 (0 votes)    Mar 15 2006 - 18:20

Decompress Zip files with Windows Shell API and C#


Use Windows shell API in C# to decompress Zip files, without showing the Copy Progress window.


Details    Read Tutorial    Views: 3736    Rate: 0 (0 votes)    Dec 05 2005 - 11:27

My Explorer In C#


An article on creating a simple Window Explorer using C# without Interop.


Details    Read Tutorial    Views: 1298    Rate: 0 (0 votes)    Nov 05 2005 - 13:52