Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!psuvax1!rutgers!cmcl2!sbcs!libws3!dtiberio From: dtiberio@libws3.ic.sunysb.edu (David Tiberio) Newsgroups: comp.sys.amiga Subject: transferring directory to text file Message-ID: <1990Nov30.053707.29556@sbcs.sunysb.edu> Date: 30 Nov 90 05:37:07 GMT Sender: usenet@sbcs.sunysb.edu (Usenet poster) Distribution: na Organization: State University of New York at Stony Brook Lines: 14 I desperately need to transfer a directory to a text file, such as: dir > ram:file list > ram:file I can do this from cli, but I need to do it from BASIC. I am using HiSoft BASIC. I tried the RUN command but get the error "illegal function call". The FILES command merely displays the directory, but not in a sequential file or variable. I need to do this without using a library, unless the library would be commonly used by other programs (and I don't want to use ARP). PLEASE HELP. :) Can this be done in C? If so, please tell me how to do it in C. Thanks.