如题,请说的详细些

解决方案 »

  1.   

    本身读到内存里面的就是ASCII.
      

  2.   

    CFile fileIn(...);
    CFile fileOut(...);
    char *pRead = new char[fileIn.GetLength()];
    char pBuf[4] = {0};
    if (int nRead = fileIn.Read(pRead, fileIn.GetLength()))
    {
      for (int n = 0; n < nRead; n++)
      {
        sprintf(pBuf, "%02X ", pRead[n]);
        fileOut.Write(pBuf, 3);
      }
    }
    fileIn.Close();
    fileOut.Close();随手写的,自己调试。
      

  3.   

    万分感谢Mackz兄,我试试,先结贴给分.
    不过我是太伤自尊了,感觉很简单的程序,都做不出来,痛苦ing...
      

  4.   

    ASCII 码大于127呢?
    sprintf 不能用 无符号的呀