home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / hypercar / 3072 < prev    next >
Encoding:
Text File  |  1992-08-12  |  1.4 KB  |  31 lines

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