Skip to content

Commit 5e50a18

Browse files
authored
Fix code to make output correct (#4490)
1 parent 7719026 commit 5e50a18

File tree

1 file changed

+2
-2
lines changed
  • samples/snippets/csharp/VS_Snippets_CLR_System/system.text.utf8encoding.getpreamble/cs

1 file changed

+2
-2
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/system.text.utf8encoding.getpreamble/cs/getpreamble1.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ public static void Main()
1212
// Write a file using the default constructor without a BOM.
1313
var enc = new UTF8Encoding();
1414
Byte[] bytes = enc.GetBytes(s);
15-
WriteToFile(@".\NoPreamble.txt", enc, bytes);
15+
WriteToFile("NoPreamble.txt", enc, bytes);
1616

1717
// Use BOM.
1818
enc = new UTF8Encoding(true);
19-
WriteToFile(@".\Preamble.txt", enc, bytes);
19+
WriteToFile("Preamble.txt", enc, bytes);
2020
}
2121

2222
private static void WriteToFile(String fn, Encoding enc, Byte[] bytes)

0 commit comments

Comments
 (0)