#: 8363 S10/OS9/6809 (CoCo)
21-Nov-90 11:24:04
Sb: #File Info
Fm: George Hendrickson 71071,2003
To: Pete Lyall 76703,4230 (X)
Hi. I want to ask you something about obtaining filename information. I was
wondering how to get that without scanning the whole directory. Let's say I
need some information on a file called 'TESTFILE.EXT'. Do I open that file as
READ+DIR? or just READ? Do I set the data TYPE as
TYPE file=name$:STRING[29];lsn0,lsn1,lsn2:BYTE and then go to the sector with
the information that I need with another type
TYPE
sector=att:BYTE;own:INTEGER;y,m,d,mi,link:BYTE;sz1,sz2,sz3,sz4:BYTE;yr,mo,da:BYTE;seg:STRING[240]?
I need to get info on a file quickly without scanning the whole directory. The
way I have this program that I'm working on set up is
it reads a directory until it finds the filename that its looking for, opens
another path as "/dd@", gets the info from that and prints the results.
However; it takes a little longer than I want it to. I'd like to just be able
to open the file and get the info that way if I could without using SysCall..
Any help is appreciated. Thanks!
There is 1 Reply.
|