Files and I/O in C# .NET

C# .NET Files and I/O

On-line course about working with files in C# .NET. Also teaches exceptions and formats like txt, csv, xml and binary files.

Lessons

Exceptions in C# .NET

Lesson 1 - Exceptions in C# .NET

This tutorial is all about exceptions in C# .NET, try-catch blocks, the finally construction and notation. It prepares you for file operations.
FreeWritten by David Capka
Introduction to working with files

Lesson 2 - Introduction to working with files

This tutorial introduces you to working with files in the Windows OS as well as writing privileges, UAC, and the use of the AppData folder in our apps.
FreeWritten by David Capka
Working with text files in C# .NET

Lesson 3 - Working with text files in C# .NET

In this tutorial, we'll work with text files (.txt extension) in C# .NET via the StreamWriter and StreamReader classes for writing, reading, and appending.
FreeUnratedWritten by David Capka
Storing objects in the CSV format in C#

Lesson 4 - Storing objects in the CSV format in C#

In this tutorial, we'll create a fully-featured form application with a user database that stores instances to a text file in the CSV format.
FreeWritten by David Capka
Storing objects in CSV format in C# .NET, part 2

Lesson 5 - Storing objects in CSV format in C# .NET, part 2

In this tutorial, we'll finish our object-oriented C# .NET form application which stores users into a CSV file.
FreeWritten by David Capka
Introduction to XML and writing via the SAX approach

Lesson 6 - Introduction to XML and writing via the SAX approach

In this tutorial, we'll introduce the XML format and approaches to manipulating XML files. We'll use SAX (XmlWriter) to create and save a simple XML.
FreeUnratedWritten by David Capka
Reading XML via the SAX approach in C# .NET

Lesson 7 - Reading XML via the SAX approach in C# .NET

In this tutorial, we'll load an XML file with multiple users using the SAX approach (the XmlReader class). We'll instantiate items from the file to a list.
FreeWritten by David Capka
Working with XML files using the DOM approach in C# .NET

Lesson 8 - Working with XML files using the DOM approach in C# .NET

In this tutorial, we'll work with XML files using the DOM approach (XmlDocument) in C# .NET, we'll read and write to them like a tree structure.
PremiumUnratedWritten by David Capka
LINQ to XML in C# .NET

Lesson 9 - LINQ to XML in C# .NET

In this tutorial, we'll generate, read, and edit XML files using the latest XML approach from .NET, i.e. LINQ to XML and the XDocument class.
PremiumWritten by David Capka
Serialization and deserialization in C# .NET

Lesson 10 - Serialization and deserialization in C# .NET

We'll learn to serialize and deserialize an object. An example is demonstrated on an application storing user data to files using object serialization.
FreeWritten by David Capka
Binary files in C#

Lesson 11 - Binary files in C#

This tutorial introduces you to binary files and the BinaryWriter and BinaryReader classes. We'll learn to read and write instances in binary in C# .NET.
PremiumWritten by David Capka
Exceptions in C# .NET for the second time

Lesson 12 - Exceptions in C# .NET for the second time

In this tutorial, we'll introduce more exception constructs, parameterized catch blocks, create custom exceptions, and list C# .NET exceptions.
PremiumUnratedWritten by David Capka
Working with files and folders in C#. NET

Lesson 13 - Working with files and folders in C#. NET

This tutorial describes the File, FileInfo, Directory, DirectoryInfo, and Path classes provided for general file and folder operations in C# .NET.
FreeWritten by David Capka


 

Activities (2)