问题如图我自己买的一本资料书上的程序,使用的事vs2010,win7系统。代码再传个,怕图传不好,如下using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;namespace ConsoleApplication1
{
class Program
{
public void Main()
{
string m_path = @":\file.txt";
File.Create();//这里提示错误:上下文中不存在名称“File” }
}
}
解决方案 »
- devexpress 汉化步骤
- webBrowser 控件问题
- c#如何截取两个关键字之间的字符串
- 崩溃!180个错误!office卸载重装后…word组件出问题了~
- winform怎么保存配置信息?
- winform程序,加载时从目录的一个文件中读取设置到application中。哪位能提供一个简单的例子?
- 百分求Developer Express .NET Windows Forms Components Suite v1.1.6 Final注册码
- 请问如何才能将输入的汉字按照汉语拼音查询???
- DataGridView增加新行,内存问题
- 把数据库链接的变量写成静态的好不好?
- C# SerialPort 的问题
- 求一条字符串对比语句
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;namespace ConsoleApplication1
{
class Program
{
public void Main()
{
string m_path = @"C:\file.txt";
File.WriteAllText(m_path,"test message."); }
}
}