dotnet-api-docs icon indicating copy to clipboard operation
dotnet-api-docs copied to clipboard

AppendText() and CreateText() throw DirectoryNotFoundException

Open UpperAvenue opened this issue 4 years ago • 3 comments

Both methods throw the exception if the directory of the file being written to doesn't exist.

Summary

Added DirectoryNotFoundException to list of exceptions thrown for CreateText and AppendText. Pulled description text from OpenWrite.

Fixes #Issue_Number (if available)

UpperAvenue avatar Aug 20 '21 19:08 UpperAvenue

Tagging subscribers to this area: @carlossanlop See info in area-owners.md if you want to be subscribed.

Issue Details

Both methods throw the exception if the directory of the file being written to doesn't exist.

Summary

Added DirectoryNotFoundException to list of exceptions thrown for CreateText and AppendText. Pulled description text from OpenWrite.

Fixes #Issue_Number (if available)

Author: UpperAvenue
Assignees: -
Labels:

area-System.IO

Milestone: -

ghost avatar Aug 20 '21 19:08 ghost

Docs Build status updates of commit a338232:

:white_check_mark: Validation status: passed

File Status Preview URL Details
xml/System.IO/FileInfo.xml :white_check_mark:Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

opbld30 avatar Aug 20 '21 19:08 opbld30

Learn Build status updates of commit a338232:

:white_check_mark: Validation status: passed

File Status Preview URL Details
xml/System.IO/FileInfo.xml :white_check_mark:Succeeded View

For more details, please refer to the build report.

For any questions, please: