代码如下:
CString TxtPath;
CStdioFile File;
CString buffer;
UINT Num = 0u;
m_Script.GetWindowText(TxtPath);
File.Open(TxtPath,CFile::modeRead);
File.SeekToBegin();
while ( File.ReadString(buffer) )
{
}
如果读取的文件中存储的数据为: 9812345678
如何将文件中读取的内容,转换为UINT8格式的数据存储,也就是存储在 UINT8 Text[] 数组中,存储
后数组中的内容为:Text[] = {0x98,0x12,0x34,0x56,0x78}
无C币了,技术讨论,不胜感激!