Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!well!oster From: oster@well.sf.ca.us (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: THINK C FILE Structure Message-ID: <21813@well.sf.ca.us> Date: 24 Nov 90 05:46:47 GMT References: <30416.27493A90@stjhmc.fidonet.org> Organization: Whole Earth 'Lectronic Link, Sausalito, CA Lines: 10 To initialize a THINK C file structure to talk to the modem port say: fopen(".AOut", "w"); fopen(".BIn", "r"); the printer port is ".BOut" and ".BIn" respectively. The resulting MacO.S. refnums can be fetched up out of the structure to do Mac O.S. serial settings calls. (since you have to call the Mac O.S. anyway, you might as well just write it as a Mac program and forget about stdio). Case is significant. These ports default to 9600 Baud, 8 data bits, no parity, 1 stop bit. -- -- David Phillip Oster - At least the government doesn't make death worse. -- oster@well.sf.ca.us = {backbone}!well!oster