[comp.sys.mac.programmer] XFCN compiling - HELP! Code Question

consp22@bingvaxu.cc.binghamton.edu (Darren Handler) (07/10/90)

I am writing an XFCN for Hypercard.  (I know what you guys are saying,
"Egads!...Hypercard) I am also using Think Pascal.  I have to use the
DRVRRuntime.lib because I am compiling a code resource.  I am using
plain vanilla Readln's in my code and the compilier is complaing
because I believe that the stuff for Readln isn't in there.  Somebody
sugessted that I use FSRead instead.

The point of the matter is, all I need is the simple readln.  The
external text file is structured in a way that makes this very easy.
I am just beginning to experiment with Mac-style programming.  (This
is hard enough)  I really can't go mucking about figuring out the
number of bytes to read and stuff just for a line.  Maybe it isn't as
hard as I think. If you have the time, I will show you what I am doing.  

I am writing an XFCN that searchs a text file for a word, then returns
a number of following lines back to Hypercard.  The text file looks
like this: ex:

Party		<-- this is the word I am searching for
3		<-- this tells me how many lines of definition follow	
A blast		<-- line 1 and so on
Entertainment
Both a verb and a noun

I got it working with just vanilla pascal code and then converted to
code to compile into an XFCN.  What do you think?  Any ideas?  I would
appreciate any help.

-------------------------------------------------------------------------------
|  Consp22@Bingsuns.pod.binghamton.edu  |  SUNY-B Computer Consultants -      |
|  Consp22@Bingvaxu.cc.binghamton.edu   |  Trying to keep the world safe from |
|---------------------------------------|  the SUNY-B Computer users.         |
|  Consultant/Techie - World Computers  |-------------------------------------|
|  Computer Cons. - SUNY Binghamton     |     Darren `Mac Hack' Handler       |
|-----------------------------------------------------------------------------|
I don't know if I am going to heaven or hell, I just hope God grades on a curve