C#路径中有非法字符?
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Da...
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApplication14
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
FileStream fs=File.Create("D:\ab.txt");
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
FileStream fs=File.Create("D:\ab.txt");这一段显示有非法字符,在哪啊 展开
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace WindowsFormsApplication14
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
FileStream fs=File.Create("D:\ab.txt");
}
private void button1_Click(object sender, EventArgs e)
{
}
}
}
FileStream fs=File.Create("D:\ab.txt");这一段显示有非法字符,在哪啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询