An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Thanks I'll give those a try.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a requirement to buffer / hold intermediate data in a spreadsheet style file. This will serve to as a readable autosave system in event of power failure or glitch.
I found CSV Helper but have to have a write object and a read object. I've also found Microsoft.Office.Interop.Excel library but I don't have Microsoft office installed.
Any other suggestions?
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Thanks I'll give those a try.
c# is a strongly typed language so object support makes sense with csv files, but most of the libraries also support dynamic objects.
There is no Microsoft library focused on csv. there is the OpenXml sdk, which focuses on office xml file format.
some open source are: CsvHelper, FileHelpers and CsvSharp. all these are on GitHub and have nuget packages. They are also feature complete and few have updates at this point. Only CsvHelper has had an update in the last year.
the cvs file format does not support random access. you need to sequential read to the desired record. it also does not support random writes. if you want to make random changes, load into memory / cache, make changes, rewrite file.