Re: Writing to a file

From: Shane Lee (mudmaster@Randor.zzn.com)
Date: 09/04/00


Okies, this is me, the guy who needed the help. If you read the
question
that I asked carefully, you'll see why Welcor's answer was indeed the
correct one. Or maybe more correct.
 You said that '1_buf' was not a C variable, and in that you are
correct.
However, I specifically said that the code I was using was a mockup of
my problem area, not the actual code. The only reason I even included
that was to make sure I wasn't crossing integers and pointers (I'm
still
pretty new to coding).
 You also said that I would want to pass "a", but I also wrote that I
would
be deleting the file as soon as it was wrote to. I use a perl script
for
this. Thus, I have to 'touch' the file before I write to it every
time.
So "wb" should work fine.
 Next, the idea of using SUB_CMD's hadn't occured to me, since this is
all happening in the nanny() proc (hence the reference to SEND_TO_Q).
I'm not too sure, but I do believe that a SUB_CMD would be wasted
there.
I think Blaize did have a good idea, and the next time I try something
like this I'll keep that in mind (if I survive the suicide attempt).
Thnx again for all the responses.

-FIRE

Get your Free E-mail at http://randor.zzn.com
____________________________________________________________
Get your own Web-Based E-mail Service at http://www.zzn.com


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html  |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 04/11/01 PDT