© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
82 replies
LukeZurg22

CSV Invalid Header Reading [Answered]

I am currently a CSV with a header of "province;red;green;blue;name;x", however my program expects to be able to read CSV's that are strictly
int;int;int;int;string;x
int;int;int;int;string;x
as opposed to (oops!) all strings as given.

I cannot change the CSV; not allowed under any circumstance. I need to implement handling of invalid entries like this but I am uncertain how, especially in a way that won't bog down my program.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

✅ Reading .csv files correctly
C#CC# / help
2y ago
Reading CSV file in C#
C#CC# / help
10mo ago