SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 2002
    Location
    Minsk, Belarus
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Read BINARY file

    Is there any way to read/write binary file in ST 5.5.3?

    ------------------
    Kosher regards and so on
    Schizoid
    Kosher regards and so on.
    Schizoid

  2. #2
    Member
    Join Date
    Aug 2002
    Location
    Durham, NC USA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Read BINARY file

    There's no standard / native way. I hacked together a way to do binary writes using a DLL a while back, and it's the only function I have ever seen that does anything to binary files. (I assume other people just haven't posted, or worked without it.)

    At http://www.qaforums.com/Forum1/HTML/003960.html
    you'll find my functions. You could also, in theory, read a binary file, just keep in mind that Chr(0) does not work very well. (You could write a UUENCODE function, maybe, and read binary "numbers" directly into a UUE'd stream.)

    In my case, all my reading could be done beforehand and stored in a LIST OF STRING, so I never completed the reading functions.

    If you'd like something else or more specific...

    -TC

    --
    Tim Crone
    Broadcom

  3. #3
    Junior Member
    Join Date
    Nov 2002
    Location
    Minsk, Belarus
    Posts
    12
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Read BINARY file

    Yes, you're straight at the point - I'm TRYING to write UUE encoder using just 4test. The only solution (as I understood) to this problem is to use Win API (dll calls). But may be someone found any workaround?

    ------------------
    Kosher regards and so on
    Schizoid
    Kosher regards and so on.
    Schizoid

  4. #4
    Member
    Join Date
    Aug 2002
    Location
    Durham, NC USA
    Posts
    60
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Read BINARY file

    I've modified my include file above for binary reading (directly to a UUEd LIST OF STRING). It also compiles out of the box now.

    As an aside, it doesn't use any functions that don't ship with Windows. It won't work in Unix, but otherwise it's not dependent on any special installation stuff.

    I've been told by many people / customer support reps that it is impossible to operate on a binary file using Silk, and no one seemed to think that would ever change. Hence the include file, and the reliance on kernel32.dll.

    Good luck!

    -TC
    --
    Tim Crone
    Broadcom

 

 

Posting Permissions

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

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:20 PM.

Copyright BetaSoft Inc.