各位好: 本人遇到个问题,读取文本文件中的2进制字符流,将其转换为16进制输出到框框里
现在的问题是,如果2进制字符流是64个长度,则程序可以正常解析,如果是128个长度则解析失败,由于附件不能上传文本文件和VI文件,将文件内容复制如下:
解析结果和程序在图片里,64个长度的可以解析成功,128个长度的解析失败,不知道什么原因,麻烦各位大侠们给看看,由于我只有1分,所以只能抱歉了,无法给更多的分
64bit.txt文件内容:
1001011111000001101101100111001011101001111001000110100110111010
1001011111000001101101100111001011101001111001000110100110111010
1100100101100110101100100110001101010111110001100100010001001010
0100100001001001110001100001001100011101001000100001110110111011
1001000000011010110010000110011110100000010101000110000001110101
1011100001001111111111001110001001111010101100111101101111101011
0010001100000100010000110010011101001000010011010011111000100111
128bit.txt文件内容:
10010111110000011011011001110010111010011110010001101001101110101001011111000001101101100111001011101001111001000110100110111010
10010111110000011011011001110010111111100000010111000000111110101001011111000001101101100111001011101001111001000110100110111010
10010111110000111111100000000010111010011110010001101001101110101001011111000001101101100111001011101001111001000110100110111010
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
一周热门 更多>