You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In members that accept a path, the path can refer to a file or just a directory. The specified path can also refer to a relative path or a Universal Naming Convention (UNC) path for a server and share name. For example, all the following are acceptable paths:
64
64
65
-
- "c:\\\MyDir\\\MyFile.txt" in C#, or "c:\MyDir\MyFile.txt" in Visual Basic.
65
+
- `"c:\\\MyDir\\\MyFile.txt"` in C#, or `"c:\MyDir\MyFile.txt"` in Visual Basic.
66
66
67
-
- "c:\\\MyDir" in C#, or "c:\MyDir" in Visual Basic.
67
+
- `"c:\\\MyDir"` in C#, or `"c:\MyDir"` in Visual Basic.
68
68
69
-
- "MyDir\\\MySubdir" in C#, or "MyDir\MySubDir" in Visual Basic.
69
+
- `"MyDir\\\MySubdir"` in C#, or `"MyDir\MySubDir"` in Visual Basic.
70
70
71
-
- "\\\\\\\MyServer\\\MyShare" in C#, or "\\\MyServer\MyShare" in Visual Basic.
71
+
- `"\\\\\\\MyServer\\\MyShare"` in C#, or `"\\\MyServer\MyShare"` in Visual Basic.
72
72
73
73
For a list of common I/O tasks, see [Common I/O Tasks](~/docs/standard/io/common-i-o-tasks.md).
74
74
@@ -979,7 +979,7 @@
979
979
<exceptioncref="T:System.IO.IOException">An I/O error occurred while creating the file.</exception>
980
980
<exceptioncref="T:System.NotSupportedException">
981
981
<paramrefname="path" /> is in an invalid format.</exception>
982
-
<permissioncref="T:System.Security.Permissions.FileIOPermission">for permission to read and write to the file described by the <paramrefname="path" /> parameter. Security action: <seecref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumerations: <seecref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />, <seecref="F:System.Security.Permissions.FileIOPermissionAccess.Write" /></permission>
982
+
<permissioncref="T:System.Security.Permissions.FileIOPermission">for permission to read and write to the file described by the <paramrefname="path" /> parameter. Security action: <seecref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumerations: <seecref="F:System.Security.Permissions.FileIOPermissionAccess.Read" />, <seecref="F:System.Security.Permissions.FileIOPermissionAccess.Write" /></permission>
983
983
<relatedtype="Article"href="~/docs/standard/io/index.md">File and Stream I/O</related>
984
984
<relatedtype="Article"href="~/docs/standard/io/how-to-read-text-from-a-file.md">Reading Text From A File</related>
985
985
<relatedtype="Article"href="~/docs/standard/io/how-to-write-text-to-a-file.md">How to: Write Text to a File</related>
0 commit comments