[comp.sys.amiga] transferring directory to text file

dtiberio@libws3.ic.sunysb.edu (David Tiberio) (11/30/90)

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.