streamwriter写到TXT时如何写到头部,而不是末尾追加呢?  用什么方法呢,谢谢~~

解决方案 »

  1.   

    对于我这种小菜鸟来说还是很麻烦...  或者把combobox里倒序排列也可以满足我的需求....
      

  2.   

    本帖最后由 net_lover 于 2012-05-16 13:16:09 编辑
      

  3.   

    using System.Collections.Generic; int i=0;
                while (i++ < 10)
                    comboBox1.Items.Add(i);
                List<object>lst=new List<object>();
                foreach (object com in comboBox1.Items)
                    lst.Reverse();
                lst.Reverse();
      

  4.   

    filestream.seek,如4楼所言
    今天我刚写了个帖子,就是对fs的seek和read进行性能测试