home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21193 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  1.2 KB

  1. Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!kth.se!dront.nada.kth.se!d88-jwa
  2. From: d88-jwa@dront.nada.kth.se (Jon Wtte)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: File creator problem
  5. Message-ID: <1993Jan11.184309.22417@kth.se>
  6. Date: 11 Jan 93 18:43:09 GMT
  7. References: <1993Jan11.145114.16500@adimail.uucp>
  8. Sender: usenet@kth.se (Usenet)
  9. Organization: Royal Institute of Technology, Stockholm, Sweden
  10. Lines: 26
  11. Nntp-Posting-Host: dront.nada.kth.se
  12.  
  13. In <1993Jan11.145114.16500@adimail.uucp> tel@adimail.uucp (Terry Monks) writes:
  14.  
  15. >But when the BBS program reads the files, I fined the creator has
  16. >changed back to MPS . What happened? The code is in MPW Pascal, and
  17. >does no more than
  18.  
  19. >          open(file, filename);      
  20. >          readln(file,string);
  21. >          close(file);
  22.  
  23. Pascal, obviously...
  24.  
  25. Anyway, the libraries you use set the creator of the file
  26. it creates (or opens) to 'MPS ' for "basic" I/O - you are
  27. using the standard I/O routines which is considered ultra
  28. tacky.
  29.  
  30. Instead, use the OS calls like FSOpen (better: HOpen) and
  31. FSRead.
  32.  
  33. Cheers,
  34.  
  35.                         / h+
  36. -- 
  37.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  38.    This sig less than 3 lines: Improve the UseNet S/N ratio!
  39.