home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.hypercard
- Path: sparky!uunet!usc!sdd.hp.com!mips!darwin.sura.net!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!scasterg
- From: scasterg@magnus.acs.ohio-state.edu (Stuart M Castergine)
- Subject: HELP, reading nulls in from a file!
- Message-ID: <1992Aug12.182939.24778@magnus.acs.ohio-state.edu>
- Sender: news@magnus.acs.ohio-state.edu
- Nntp-Posting-Host: bottom.magnus.acs.ohio-state.edu
- Organization: The Ohio State University
- Date: Wed, 12 Aug 1992 18:29:39 GMT
- Lines: 19
-
- I'm reading some data in from a file, and two characters of the data
- represent the lsb (least significant bit) and msb (most significant
- bit) of a number. With any value above zero, this works fine, I can
- use the chartonum function to get the ascii value of the character and
- use that to calculate the number. Unfortunately, it seems like when
- Hypercard encounters nulls (ascii 0 or hex 00) it is replacing them
- with a space (ascii 32), which totally messes up my calculations.
- Anybody know of a way to read in nulls? Is ther an XCMD or XFCN that
- replaces the "read file" function that I can use as a substitute?
-
- Please respond, I need help bad.
-
- Note that I am not in control of the file format -- I have to work with
- these nulls or not at all.
-
- --
- scasterg@magnus.acs.ohio-state.edu -- Stuart M. Castergine
- Fiver: "Oh, Hazel, look! The field! It's covered with blood!"
- Hazel: "Don't be silly, it's only the light of the sunset." -- Watership Down
-