Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!decwrl!pyramid!amiga!skipper!cbmvax!daveh From: daveh@cbmvax.UUCP Newsgroups: net.micro.amiga Subject: Re: Does anyone know how to get directory info within a prog? Message-ID: <447@cbmvax.cbmvax.cbm.UUCP> Date: Tue, 24-Jun-86 14:42:09 EDT Article-I.D.: cbmvax.447 Posted: Tue Jun 24 14:42:09 1986 Date-Received: Thu, 26-Jun-86 04:26:31 EDT References: <2360@mit-eddie.MIT.EDU> Organization: Commodore Technology, West Chester, PA Lines: 42 > > <> > > Have any of you out there in Amigaland learned how to read disk directories, > how to change directories, and how to get info about particular entries > (such as: file or directory, filesize, etc.) from within a program? > I glanced through the ROM Kernel Manual and found only very low level info > about tracks, sectors, etc. rather than about the directory structure. > > I've been calling the Amiga tech line for a couple of weeks now and either > get their answering machine or nothing at all...anyone know what's up? > > If you have the answers, please mail them to me as well as posting...I'm > having a hard time wrenching myself away from the machine to keep up with > the news! (I'm already 400 behind, sigh) > > Thanks, > Gary > > > ihnp4! \ > > mit-eddie!gary > decvax!genrad! / You can find most of this information in the Amiga Developer's Manual, which details all of the DOS level calls. Lets you examine, delete, create, etc. directories and files. Also has the low level Read(), Write(), and Seek() functions which are the lowest DOS level interface functions, and likely the fastest as well. If you have the includes, most of the stuff is in the dosextens.h file, including FileLocks for multiple access of the same file, FileInfoBuffers that contain the stats on a given file or directory, and the DOS versions of file headers, which are different than the FILE * you get in Lattice C. -- /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ Dave Haynie {caip,ihnp4,allegra,seismo}!cbmvax!daveh A quote usually goes here, but its currently being rennovated. These opinions are my own, though for a small fee they be yours too. \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/