Read & write to a CSV file using a list in ASP.NET Core
Learn how to read and write CSV files in an ASP.NET Core Web API. This tutorial walks through different scenarios so you can easily handle CSV data in your ....

Round The Code
558 views β’ Nov 3, 2025

About this video
Learn how to read and write CSV files in an ASP.NET Core Web API. This tutorial walks through different scenarios so you can easily handle CSV data in your .NET applications.
You will learn:
β How to read from a CSV file and output the contents to a list
β How to configure CSV reading when your file does not have a header
β How to select only certain properties from a CSV file
β How to write data to a CSV file by passing in a list
β Best practices for handling CSV files in ASP.NET Core
By the end, you will know how to integrate CSV file reading and writing into your ASP.NET Core Web API for flexible data processing.
π» Download the code exampleπ»
https://www.roundthecode.com/dotnet-code-examples/read-write-csv-file-example-asp-net-core?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28code+example%29
βΊ Read the tutorial:
https://www.roundthecode.com/dotnet-tutorials/read-write-csv-file-list-asp-net-core?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28tutorial%29
π .NET tutorials, code examples and coding challenges π
https://www.roundthecode.com/?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28roundthecode%2Ecom%29
βΊ Chapters
0:00 Read a CSV file in ASP.NET Core
3:01 Read a CSV file with no header
4:13 Read certain properties from a CSV file
5:17 Override header names
6:23 Read a CSV file by line
7:46 Write to a CSV file
9:04 Other ways of using API endpoints
You will learn:
β How to read from a CSV file and output the contents to a list
β How to configure CSV reading when your file does not have a header
β How to select only certain properties from a CSV file
β How to write data to a CSV file by passing in a list
β Best practices for handling CSV files in ASP.NET Core
By the end, you will know how to integrate CSV file reading and writing into your ASP.NET Core Web API for flexible data processing.
π» Download the code exampleπ»
https://www.roundthecode.com/dotnet-code-examples/read-write-csv-file-example-asp-net-core?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28code+example%29
βΊ Read the tutorial:
https://www.roundthecode.com/dotnet-tutorials/read-write-csv-file-list-asp-net-core?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28tutorial%29
π .NET tutorials, code examples and coding challenges π
https://www.roundthecode.com/?utm_source=youtube&utm_medium=referral&utm_campaign=uXz2DeUWYoY+-+video+content+%28roundthecode%2Ecom%29
βΊ Chapters
0:00 Read a CSV file in ASP.NET Core
3:01 Read a CSV file with no header
4:13 Read certain properties from a CSV file
5:17 Override header names
6:23 Read a CSV file by line
7:46 Write to a CSV file
9:04 Other ways of using API endpoints
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
558
Likes
27
Duration
9:35
Published
Nov 3, 2025
Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
No specific trending topics match this video yet.
Explore All Trends