未能找到类型或命名空间名称“streamwriter"
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
namespace menuhistory001
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void 打开ToolStripMenuItem1_Click(object sender, EventArgs e)
{
openFileDialog1.FileName = "";
this.openFileDialog1.ShowDialog();
streamwriter s = new streamwriter( "\\Menu.ini", true);
}
网上说加上using System.IO;
就可以了,可是我加上之后还是报错,再右边添加引用那里找不到system.IO.
刚开始学C#求解释的详细一点,谢谢。
------解决方案--------------------streamwriter 注意大小写..