FileInfo f = new FileInfo(@"c:\bb.txt");
            StreamWriter w = f.CreateText();我用这种方法往txt文本中写数据,在第一个project中可以加上 using system.io这个引用,程序运行成功,但是在第二个project中,不知怎么地,无论如何也没法  using system.io ,
弄得我现在只能用粘贴代码的方式在同一个可以引用system.io的project中做不同的工程.请问哪位大哥来帮我解答一下啊?

解决方案 »

  1.   

    to 是在第二个project中,不知怎么地,无论如何也没法 using system.io ,很怪,报什么错
      

  2.   

    Error 1 The type or namespace name 'system' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\Administrator\My Documents\Visual Studio 2005\Projects\ciles\ciles\Form1.cs 8 7 ciles
    (这就是当我加上using system.io之后出现的)
    是WinApplication
      

  3.   

    晕,你不会用的是小写吧
    正确应该如下:using System.IO;