We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7719026 commit 5e50a18Copy full SHA for 5e50a18
samples/snippets/csharp/VS_Snippets_CLR_System/system.text.utf8encoding.getpreamble/cs/getpreamble1.cs
@@ -12,11 +12,11 @@ public static void Main()
12
// Write a file using the default constructor without a BOM.
13
var enc = new UTF8Encoding();
14
Byte[] bytes = enc.GetBytes(s);
15
- WriteToFile(@".\NoPreamble.txt", enc, bytes);
+ WriteToFile("NoPreamble.txt", enc, bytes);
16
17
// Use BOM.
18
enc = new UTF8Encoding(true);
19
- WriteToFile(@".\Preamble.txt", enc, bytes);
+ WriteToFile("Preamble.txt", enc, bytes);
20
}
21
22
private static void WriteToFile(String fn, Encoding enc, Byte[] bytes)
0 commit comments