Here are the examples of the csharp api System.IO.Stream.ReadAllLines() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : Utils.cs
with Apache License 2.0
from cocowalla
with Apache License 2.0
from cocowalla
public static List<string> DecompressLines(string path)
{
using (var textStream = new MemoryStream())
{
using (var fs = System.IO.File.OpenRead(path))
using (var decompressStream = new GZipStream(fs, CompressionMode.Decompress))
{
decompressStream.CopyTo(textStream);
}
textStream.Position = 0;
var lines = textStream.ReadAllLines();
return lines;
}
}