1
0
mirror of https://github.com/chylex/Brotli-Builder.git synced 2024-12-22 16:42:46 +01:00
Brotli-Builder/BrotliLib/Brotli/Dictionary/Source/OpenFileSource.cs

11 lines
401 B
C#

using System.IO;
namespace BrotliLib.Brotli.Dictionary.Source{
/// <summary>
/// Reads dictionary words from a file, which will stay open and block write access until disposed.
/// </summary>
public sealed class OpenFileSource : StreamSource{
public OpenFileSource(string filePath) : base(new FileStream(filePath, FileMode.Open, FileAccess.Read, FileShare.Read)){}
}
}