- Learn how to manage local files and directories using the System.IO classes, and how to store and retrieve C# objects using CSV files and the StreamReader and StreamWriter classes.
Describe common file input and output operations, the difference between structured and unstructured data, and common text file formats.
Use the Path, Directory, and File classes to create, copy, move, delete, and enumerate local text files and directories.
Implement file input and output operations using the StreamReader and StreamWriter classes and CSV files.
Control file access using the FileStream class.
Read and write binary files using the BinaryReader and BinaryWriter classes.
Store and retrieve C# objects using file input and output operations.
- Learn how to serialize and deserialize JavaScript Object Notation (JSON) strings using the JsonSerializer class, the JsonSerializerOptions class, and Data Transfer Objects.
Explain the basics of JSON syntax and its use in data interchange and storage.
Use the System.Text.Json namespace in C# to work with JSON data.
Serialize C# objects into JSON strings using the JsonSerializer.Serialize method and customize the serialization process.
Deserialize JSON strings back into C# objects using the JsonSerializer.Deserialize method and customize the deserialization process.
Use the JsonSerializerOptions class and Data Transfer Objects (DTOs) to manage the serialization and deserialization of complex objects.
- Learn how to implement asynchronous tasks in C# apps using the `async` and `await` keywords and how to run asynchronous tasks in parallel.
Implement asynchronous programming in C# using the async and await keywords.
Perform asynchronous file input and output operations and access web resources asynchronously in C#.
Use the Task Parallel Library (TPL) in C# for parallel programming and managing concurrent data structures.
Identify common pitfalls in parallel programming and handle exceptions in async and parallel tasks.
Implement data parallelism in a C# application as part of a hands-on exercise.
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Syllabus
- Get started with file input and output
- Introduction
- Examine text file formats and tools
- Manage local directories and files using the Directory, File, and Path classes
- Read and write text files using the StreamReader and StreamWriter classes
- Control file access using the FileStream class
- Examine the BinaryReader and BinaryWriter classes
- Exercise - Create and manage text files
- Module assessment
- Summary
- Store and retrieve JSON files
- Introduction
- Get started with JavaScript Object Notation
- Implement the JsonSerializer class in C# apps
- Customize serialization behavior
- Customize deserialization behavior
- Manage serialization and deserialization of complex objects
- Exercise - Serialize and deserialize JavaScript Object Notation files
- Knowledge check
- Summary
- Implement asynchronous tasks
- Introduction
- Get started with asynchronous programming
- Implement asynchronous file input and output
- Access web resources asynchronously
- Run asynchronous tasks in parallel
- Manage asynchronous and parallel tasks
- Exercise - Implement tasks asynchronously and in parallel
- Knowledge check
- Summary