using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Text;
7 using System.Windows.Forms;
8 using System.IO;
9
10 namespace FileOptionApplication
11 {
12 public partial class Form11 : Form
13 {
14 public Form11()
15 {
16 InitializeComponent();
17 }
18 //添加变量TypeW,int类型,0为默认,1为打开文件夹并建立new.txt文件,2为打开文本文件
19 int TypeW = 0;
20 /// <summary>
21 /// 选定某个文件夹
22 /// </summary>
23 private void button1_Click(object sender, EventArgs e)
24 {
25 //新建文件夹
26 FolderBrowserDialog openfolder = new FolderBrowserDialog();
27 if (openfolder.ShowDialog ()== DialogResult.OK)
28 {
29 textBox1.Text = Convert.ToString(openfolder.SelectedPath);
30
文件流FileStream综合案例
最新推荐文章于 2022-12-18 15:10:18 发布