日期:2014-05-17  浏览次数:20723 次

100分!!!紧急求助,Byte转String不完全
====  用记事本打开的这个文件=====

PROG~ 5515B36C02.pgmMAKE.pat5515B36C02.tim5515B36C02.pwr RED Power - 1
Timing - 1                  33S@33S@      ?                                                         ??啷?^^;?@       33S@                            2       GREEN      A
           33S@33S@      ?                                                         ??啷?^^;?@       33S@                            2       BLUE      A
            33S@33S@      ?                                                         ??啷?^^;?@       33S@                            2       EDID1\DEFAULT1.edd                     ?                  



=== 用程序读出来咋是这样子的呢===

PROG~




好像没有转换利索一样子。。。

====  代码如下===

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim fn As New IO.FileStream("D:\Program Files\Chroma\CFPT 2912\Program\5515B36C02.pgm", IO.FileMode.Open)
        Dim fr As New IO.BinaryReader(fn)
        Dim data() As Byte = fr.ReadBytes(1000)
        TextBox1.Text = System.Text.Encoding.ASCII.GetString(data)
        fr.Close()
        fn.Close()
    End