首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

未能找出类型或命名空间名称“streamwriter"

2013-08-01 
未能找到类型或命名空间名称“streamwriterusing Systemusing System.Collections.Genericusing System.

未能找到类型或命名空间名称“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#求解释的详细一点,谢谢。 C#
[解决办法]
streamwriter 注意大小写..

热点排行