我以二进制的方式打开了一个文件   然后将这个文件里面的逐个字节赋值给了一个数组中的元素
我再怎么将这个数组  转换成一个 字符串啊?

解决方案 »

  1.   

    见这个http://topic.csdn.net/u/20090922/13/559d8dd1-bf8b-4bfb-9a93-022495d65acd.html
      

  2.   

    dim s as string
    s=join(sdata,"") 或者循环取得for i=0 to ubound(sdata)
       s=s+s+sdata(i)
    next
      

  3.   

    有点不太清楚。
    强转不就行了。
    你可以打开文件,fseek到最后,ftell到文件的长度,然后一次性fread到一个char型数组
      

  4.   

    这个数组若是 ANSI 格式的 Byte 数组转换为字符串时,直接使用 StrConv 函数,s = StrConv(ibyte(), vbUnicode)
      

  5.   

    Dim s As String
    Dim b() As Byte'文件内容赋值到数组b后,直接用下面这个语句将数组转为字符串'
    s = b()Debug.Print s, StrConv(s, vbUnicode)
      

  6.   

    dim b() as byte
    dim s as strings = b()
      

  7.   

    s = StrConv(ibyte(), vbUnicode) 
      

  8.   

    dim biData() as byte
    open yourFile for binary as #1
    biData=inputb(lof(1),1)
    debug.print strconv(biData,vbunicode)
    close #1