From be75d314a5f859e4be81bbcbb7b60bb016719a85 Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sat, 11 Jul 2015 19:00:39 +0200 Subject: [PATCH] Data: fix MatrixMarketWriter.WriteVector to use File.OpenWrite #335 --- src/Data/Text/MatrixMarketWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Text/MatrixMarketWriter.cs b/src/Data/Text/MatrixMarketWriter.cs index bcc51529..b86bc5d5 100644 --- a/src/Data/Text/MatrixMarketWriter.cs +++ b/src/Data/Text/MatrixMarketWriter.cs @@ -77,7 +77,7 @@ namespace MathNet.Numerics.Data.Text public static void WriteVector(string filePath, Vector vector, Compression compression = Compression.Uncompressed) where T : struct, IEquatable, IFormattable { - using (var stream = File.OpenRead(filePath)) + using (var stream = File.OpenWrite(filePath)) { switch (compression) {