is that a windows.forms application? if so, you should use relative path, like "Aa1\a1.txt". So when you develop the program, you should have created the subdirectories in bin\debug

解决方案 »

  1.   

    yup,that is window.forms application.
    i like to use relative path.
    why i should create subdirectories in bin\debug
    maybe c# can know the path in bin\debug.
     if i want to make the subdirector in vs develop tools,
    how can  i do make the subdirector in bin\debug,
    only ways is to make a subdirector with hands way in resource manager
      

  2.   

    you are stubborn, your subdirectories should be relative to your exe, not relative to your cs files!
      

  3.   

    我明白你的意思,但是我的意思是该怎么使用vs工具来直接在界面上建立我的文件夹和管理我的文件夹,根据我了解vb,jbuilder都能很好的实现这一点。
    难道使用c#的人们还要通过资源管理器的方式来建立自己的子文件夹
    管理的时候还要切换界面来实现,悲哀!!!
      

  4.   

    你试试:在bin/debug目录下建立子目录,这样才能使用虚拟路径来取得所在文件!!!谢谢!!!