Skip to content
/ RSV Public

.Net library for reading / writing RSV files

License

Notifications You must be signed in to change notification settings

RobThree/RSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo RSV

Build Status Nuget version

This library, available on NuGet, provides a simple way to parse and generate RSV (Row of String Values) files. This library reads / writes in a streaming way so memory usage is minimal.

Quickstart

Reading RSV file:

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:

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.

About

.Net library for reading / writing RSV files

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages