mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 03:02:35 +01:00
Keep using gzip for ncor db
This commit is contained in:
parent
26945bf552
commit
c52fa7ab70
@ -38,7 +38,8 @@ namespace Nikse.SubtitleEdit.Logic.Ocr
|
||||
File.Delete(FileName);
|
||||
}
|
||||
|
||||
using (Stream stream = new FileStream(FileName, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
|
||||
//using (Stream stream = new FileStream(FileName, FileMode.CreateNew, FileAccess.ReadWrite, FileShare.None))
|
||||
using (Stream stream = new GZipStream(File.OpenWrite(FileName), CompressionMode.Compress))
|
||||
{
|
||||
var versionBuffer = Encoding.ASCII.GetBytes(Version);
|
||||
stream.Write(versionBuffer, 0, versionBuffer.Length);
|
||||
|
Loading…
Reference in New Issue
Block a user