Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: Help using console routines in ThinkC Message-ID: Date: 27 Apr 91 07:57:19 GMT References: <1991Apr26.101148.17606@agate.berkeley.edu> Sender: news@nada.kth.se (Mr News) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 18 In-reply-to: dburr@sandstorm.berkeley.edu's message of 26 Apr 91 10:11:48 GMT In article <> dburr@sandstorm.berkeley.edu (Donald Burr) writes: I converted a Lex file to C source on UNIX, and ported it into a Mac environment. I designed a front-end for it using Prototyper (Mac Is there a way I can get the user to choose if he wants input from a file and where to direct output to (console or file)? Example code would be THINK C manual, Standard Libraries Reference, page 171. You _should_ redefine the input and output macros in the lexed file to call functions you define, though. They should most probably use MacOS functions - TextEdit for kbd input or HOpen/FSRead for files. -- Jon W{tte h+@nada.kth.se - Power !