Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2011-04-26 00:21:57 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2011-04-26 00:22:44 +0400
commitb2dc4775708b7234428e98339c4d9804aebab799 (patch)
tree4900675c979b801ce41c03dec3de7ed15872cc29 /mcs/class/corlib/System.IO/File.cs
parent4d8db5cfb82195c9789073e674f279b51c6b2baf (diff)
In *AllLines use WriteLine instead of Write.
This fixes bug #689670.
Diffstat (limited to 'mcs/class/corlib/System.IO/File.cs')
-rw-r--r--mcs/class/corlib/System.IO/File.cs8
1 files changed, 4 insertions, 4 deletions
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