Set autoflush, just in case

This commit is contained in:
Matt Nadareski
2020-12-23 16:09:43 -08:00
parent 8a60d824e3
commit ebe3a41595

View File

@@ -30,7 +30,7 @@ namespace SabreTools.Reports
{ {
var fs = File.Create(filename); var fs = File.Create(filename);
if (fs != null) if (fs != null)
_writer = new StreamWriter(fs); _writer = new StreamWriter(fs) { AutoFlush = true };
_baddumpCol = baddumpCol; _baddumpCol = baddumpCol;
_nodumpCol = nodumpCol; _nodumpCol = nodumpCol;
@@ -47,7 +47,7 @@ namespace SabreTools.Reports
if (!stream.CanWrite) if (!stream.CanWrite)
throw new ArgumentException(nameof(stream)); throw new ArgumentException(nameof(stream));
_writer = new StreamWriter(stream); _writer = new StreamWriter(stream) { AutoFlush = true };
_baddumpCol = baddumpCol; _baddumpCol = baddumpCol;
_nodumpCol = nodumpCol; _nodumpCol = nodumpCol;
} }