https://github.com/robthree/rsv
.Net library for reading / writing RSV files
https://github.com/robthree/rsv
Last synced: 12 months ago
JSON representation
.Net library for reading / writing RSV files
- Host: GitHub
- URL: https://github.com/robthree/rsv
- Owner: RobThree
- License: mit
- Created: 2024-01-09T10:07:41.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-07T13:03:33.000Z (almost 2 years ago)
- Last Synced: 2025-02-10T14:04:18.219Z (about 1 year ago)
- Language: C#
- Size: 4.14 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
#  RSV
 [](https://www.nuget.org/packages/RSV/)
This library, [available on NuGet](https://www.nuget.org/packages/RSV), provides a simple way to parse and generate [RSV (Row of String Values) files](https://github.com/Stenway/RSV-Specification). This library reads / writes in a streaming way so memory usage is minimal.
## Quickstart
### Reading RSV file:
```c#
using var stream = File.OpenRead("test.rsv");
var reader = new RsvReader(stream);
// Dump data
foreach (var row in reader.Read()) {
Console.WriteLine(string.Join("\t", row));
}
```
### Writing RSV file:
```c#
using var stream = File.Create("test.rsv");
var writer = new RsvWriter(stream);
string[][] data = [
["A", "B", "C"],
["1", "2", "3"]
];
// Write data
writer.Write(data);
// ...or write data async (you can optionally pass a CancellationToken):
await writer.WriteAsync(data);
```
## Attibution
Logo based on [CSV Icon by Freepik](https://www.freepik.com/icon/csv_6133923).