From: | Andrew Bell |
Date: | 19 Aug 2000 at 13:47:39 |
Subject: | Re: Writing a file within a Task |
Hi Charlie,
On 17-Aug-00 you wrote: [amiga-c] Writing a file within a Task
> Ive been getting my program to spawn a task, and was wondering
> why it just didnt work at a certain point, then I remembered you
> cant call dos.library routines within a exec task. I tried to use
> fwrite(), fclose() etc. instead of Write() , Open() etc. probably
> because fwrite() and fclose() use Write() and Close();
>
> I there anyway to write files within an exec task without haveing to
> create it as a Process?
You could issue packets directly to the filesystem handler, but IMHO
this would be overkill. Is it really necessary that you spawn just a
simple Task? Using a Process might be a better solution. It would
definitely make life easier for you, when it comes to implementing
your file IO code.
Regards, Andrew Bell.
+----------------------------------------+
email: mailto:andrew.ab2000@bigfoot.com
web: http://www.andrewb.exl.co.uk
+----------------------------------------+
Errr, this is the ANIMAL_SEX Echo.