<分区>
我正在开发一个 C# 应用程序。在此表单中,我添加了 2 个按钮。
这些是 Browse
和 Create File
按钮。
现在我想做的是使用浏览按钮浏览一个位置,然后单击 Create file
按钮,在该位置创建一个文本文件。
<分区>
我正在开发一个 C# 应用程序。在此表单中,我添加了 2 个按钮。
这些是 Browse
和 Create File
按钮。
现在我想做的是使用浏览按钮浏览一个位置,然后单击 Create file
按钮,在该位置创建一个文本文件。
最佳答案
看看
Prompts the user to select a location for saving a file.
或
Prompts the user to select a folder.
Creates a file in the specified path.
甚至
Creates or opens a file for writing UTF-8 encoded text
关于c# - 在 C# 应用程序中的选定位置创建 txt 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18266706/