diff --git a/snippets/csharp/System.IO/FileInfo/OpenWrite/file openwrite.cs b/snippets/csharp/System.IO/FileInfo/OpenWrite/file openwrite.cs index 7b0e20ae25e..d6ad07013f8 100644 --- a/snippets/csharp/System.IO/FileInfo/OpenWrite/file openwrite.cs +++ b/snippets/csharp/System.IO/FileInfo/OpenWrite/file openwrite.cs @@ -34,18 +34,5 @@ public static void Main() } } //This code produces output similar to the following; -//results may vary based on the computer/file structure/etc.: -// //This is to test the OpenWrite method. -// -// -// -// -// -// -// -// -// -// -// // diff --git a/xml/System.IO/FileInfo.xml b/xml/System.IO/FileInfo.xml index 3526f7193ab..f6445bfdf6c 100644 --- a/xml/System.IO/FileInfo.xml +++ b/xml/System.IO/FileInfo.xml @@ -2137,7 +2137,7 @@ The following example demonstrates moving a file to a different location and ren method opens a file if one already exists for the file path, or creates a new file if one does not exist. For an existing file, it does not append the new text to the existing text. Instead, it overwrites the existing characters with the new characters. If you overwrite a longer string (such as "This is a test of the OpenWrite method") with a shorter string (like "Second run"), the file will contain a mix of the strings ("Second runtest of the OpenWrite method"). + The method opens a file if one already exists for the file path, or creates a new file if one does not exist. For an existing file, it does not append the new text to the existing text. Instead, it overwrites the existing characters with the new characters. If you overwrite a longer string (such as "This is a test of the OpenWrite method") with a shorter string (like "Second run"), the file will contain a mix of the strings ("Second run test of the OpenWrite method.").