From 727a32e4ba897cbf49b0ce906e77cf71361cba31 Mon Sep 17 00:00:00 2001
From: Copilot <198982749+Copilot@users.noreply.github.com>
Date: Mon, 20 Oct 2025 08:42:08 -0700
Subject: [PATCH] Remove incorrect "read-only file" exception from File.Read*
method documentation (#11944)
---
xml/System.IO/File.xml | 28 ++++------------------------
1 file changed, 4 insertions(+), 24 deletions(-)
diff --git a/xml/System.IO/File.xml b/xml/System.IO/File.xml
index 66cfc1e587b..7d40c44d790 100644
--- a/xml/System.IO/File.xml
+++ b/xml/System.IO/File.xml
@@ -4744,12 +4744,7 @@ The following example moves a file.
The specified path, file name, or both exceed the system-defined maximum length.
The specified path is invalid (for example, it is on an unmapped drive).
An I/O error occurred while opening the file.
-
- specified a file that is read-only.
-
- -or-
-
- This operation is not supported on the current platform.
+ This operation is not supported on the current platform.
-or-
@@ -4847,12 +4842,7 @@ The following example moves a file.
The specified path, file name, or both exceed the system-defined maximum length.
The specified path is invalid (for example, it is on an unmapped drive).
An I/O error occurred while opening the file.
-
- specified a file that is read-only.
-
- -or-
-
- This operation is not supported on the current platform.
+ This operation is not supported on the current platform.
-or-
@@ -5054,12 +5044,7 @@ The following example moves a file.
The specified path, file name, or both exceed the system-defined maximum length.
The specified path is invalid (for example, it is on an unmapped drive).
An I/O error occurred while opening the file.
-
- specified a file that is read-only.
-
- -or-
-
- This operation is not supported on the current platform.
+ This operation is not supported on the current platform.
-or-
@@ -5161,12 +5146,7 @@ The following example moves a file.
The specified path, file name, or both exceed the system-defined maximum length.
The specified path is invalid (for example, it is on an unmapped drive).
An I/O error occurred while opening the file.
-
- specified a file that is read-only.
-
- -or-
-
- This operation is not supported on the current platform.
+ This operation is not supported on the current platform.
-or-