From b2dc4775708b7234428e98339c4d9804aebab799 Mon Sep 17 00:00:00 2001 From: Gonzalo Paniagua Javier Date: Mon, 25 Apr 2011 16:21:57 -0400 Subject: In *AllLines use WriteLine instead of Write. This fixes bug #689670. --- mcs/class/corlib/System.IO/File.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'mcs/class/corlib/System.IO') diff --git a/mcs/class/corlib/System.IO/File.cs b/mcs/class/corlib/System.IO/File.cs index d768e9457c0..d9335146477 100644 --- a/mcs/class/corlib/System.IO/File.cs +++ b/mcs/class/corlib/System.IO/File.cs @@ -640,7 +640,7 @@ namespace System.IO using (TextWriter w = new StreamWriter (path, true)) { foreach (var line in contents) - w.Write (line); + w.WriteLine (line); } } @@ -653,7 +653,7 @@ namespace System.IO using (TextWriter w = new StreamWriter (path, true, encoding)) { foreach (var line in contents) - w.Write (line); + w.WriteLine (line); } } @@ -666,7 +666,7 @@ namespace System.IO using (TextWriter w = new StreamWriter (path, false)) { foreach (var line in contents) - w.Write (line); + w.WriteLine (line); } } @@ -679,7 +679,7 @@ namespace System.IO using (TextWriter w = new StreamWriter (path, false, encoding)) { foreach (var line in contents) - w.Write (line); + w.WriteLine (line); } } #endif -- cgit v1.2.3