Skip to content

Commit 8d4c207

Browse files
adamsitnikgewarren
andauthored
Update xml/System.IO/FileInfo.xml
Co-authored-by: Genevieve Warren <[email protected]>
1 parent 750b86e commit 8d4c207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xml/System.IO/FileInfo.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2137,7 +2137,7 @@ The following example demonstrates moving a file to a different location and ren
21372137
<format type="text/markdown"><![CDATA[
21382138
21392139
## Remarks
2140-
The <xref:System.IO.FileInfo.OpenWrite%2A> 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 the OpenWrite method.").
2140+
The <xref:System.IO.FileInfo.OpenWrite%2A> 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.").
21412141
21422142
21432143

0 commit comments

Comments
 (0)