Results 1 to 5 of 5

Thread: Read svb file (vb script) at once

Threaded View

  1. #1

    Thread Starter
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Arrow Read svb file (vb script) at once

    This should be easy, but something is happening with these files, if I read as BINARY, the String I Get doesn't look like normal text, then if I convert the String using vbFromUnicode it gets fixed but a '?' char appears at the begining.

    This is the code:
    Code:
        Dim StrRet As String
        Open "C:\scr1.svb" For Binary As #1
           StrRet = Space(LOF(1))
            Get #1, , StrRet
        Close #1
    Using that same code in normal TXT files works, but not for these SVB.
    If I do StrRet = strconv(StrRet, vbFromUnicode) then the string is fixed, but then there is that ? symbol at the begining.

    Thanks
    Attached Files Attached Files
    Last edited by jcis; Apr 23rd, 2009 at 05:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width