home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!kth.se!dront.nada.kth.se!d88-jwa
- From: d88-jwa@dront.nada.kth.se (Jon Wtte)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: File creator problem
- Message-ID: <1993Jan11.184309.22417@kth.se>
- Date: 11 Jan 93 18:43:09 GMT
- References: <1993Jan11.145114.16500@adimail.uucp>
- Sender: usenet@kth.se (Usenet)
- Organization: Royal Institute of Technology, Stockholm, Sweden
- Lines: 26
- Nntp-Posting-Host: dront.nada.kth.se
-
- In <1993Jan11.145114.16500@adimail.uucp> tel@adimail.uucp (Terry Monks) writes:
-
- >But when the BBS program reads the files, I fined the creator has
- >changed back to MPS . What happened? The code is in MPW Pascal, and
- >does no more than
-
- > open(file, filename);
- > readln(file,string);
- > close(file);
-
- Pascal, obviously...
-
- Anyway, the libraries you use set the creator of the file
- it creates (or opens) to 'MPS ' for "basic" I/O - you are
- using the standard I/O routines which is considered ultra
- tacky.
-
- Instead, use the OS calls like FSOpen (better: HOpen) and
- FSRead.
-
- Cheers,
-
- / h+
- --
- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
- This sig less than 3 lines: Improve the UseNet S/N ratio!
-