This is rather odd. I'm reading a binary file into a string, but the string isn't matching its source code exactly:

  if file <> nil then

    output = ""
    binary = file.OpenAsBinaryFile(false)

    do until binary.eof

      i = binary.ReadByte
      output = output + binary.Read(i)
      output = output + " "

    loop


    winMain.editBoxWidth.text = mid ( output, 1, 2 )

    winMain.editBoxHeight.text = mid ( output, 3, 2 )

winMain.editBoxGridFill.text= mid ( out, 5, Val ( winMain.editBoxWidth.text ) * Val ( winMain.editBoxHeight.text ) )

    msgBox winMain.editBoxGridFill.text


  end if



I thought this was pretty straight forward, but when I check the contents of "winMain.editBoxGridFill.text" with the msgBox call, I notice that two characters (the 122th and 191st, respectively) are spaces instead of letters.

Any ideas why?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to