[Coco] Intro and need some help (Was: Re: (no subject))
Bill Pierce
ooogalapasooo at aol.com
Sat Mar 9 19:30:14 EST 2013
Bill
Try "attr file -d" This will make it a file then it can be deleted normally. If you do this to a real directory, it could lead to a lot of trouble.
It sounds like you're setting your file wrong when it's created
Use this:
#define READ 1
#define WRITE 2
#define UPDAT READ+WRITE
#define DIR 0x80
#define EXEC 8
Then creat/open(path,file,READ/WRITE/UPDAT)
Using which ever option you need. Then a directory should not be created.
Hope this helps
Bill P
Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Bill Pierce
ooogalapasooo at aol.com
-----Original Message-----
From: Bill Gunshannon <billg999 at cs.uofs.edu>
To: CoCoList for Color Computer Enthusiasts <coco at maltedmedia.com>
Sent: Sat, Mar 9, 2013 6:58 pm
Subject: Re: [Coco] Intro and need some help (Was: Re: (no subject))
A big tip of the hat to Robert Gault. Those modules did the trick.
I now have a system with all the stuff I need at the moment. And I
can rebuild my system without havingto resort to a floppy again.
Here's my next interesting one. I compiled a program written in
C. (Actually taken from Unix.) It opens a file for writting and
if not already there, creates it. I wrote a bunch of text to it.
Closed it and exited the program. Dir say that file is a directory.
IfI dir it I see all the text I entered. Now the problem. How do I
get rid of it? I can't delete it because it isn't empty. And I can't
empty it because those aren't really file names in the directory.
Suggestions?
bill
--
Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves
billg999 at cs.scranton.edu | and a sheep voting on what's for dinner.
University of Scranton |
Scranton, Pennsylvania | #include <std.disclaimer.h>
--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco
More information about the Coco
mailing list