什么意思,都hex了怎么有事文本文件??

解决方案 »

  1.   

    9494,呵呵:using System.IO;private static byte[] BinaryAdd(ResourceWriter rw,string itemnameOf,string filenameOf) {
    try{
    FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read);
    int byteLength = (int)fs.Length;
    byte[] wf = new byte[byteLength];
    fs.Read(wf,0,byteLength);
    fs.Close();
    return wf;
    }catch{}
    }
      

  2.   

    忘记清理了,cc 完整如下using System.IO;private static byte[] BinaryAdd(string filenameOf) {
    try{
    FileStream fs = new FileStream(filenameOf,FileMode.Open, FileAccess.Read);
    int byteLength = (int)fs.Length;
    byte[] wf = new byte[byteLength];
    fs.Read(wf,0,byteLength);
    fs.Close();
    return wf;
    }catch{}
    }