View Single Post
  #1  
Old 01-28-2003, 05:25 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
IndexFiles(dir,ext)

IndexFiles(dir,ext,string)

Creates a space delimited string array of filenames, minus the extensions, in a given directory

dir - A subdirectory of the levels directory, for example, IndexFiles(webgifs,ext) would get you to the webgifs folder

ext - the file extention to list

string - the string to write the list to

examples:

IndexFiles(midis,mid,client.midi);

would list all of the midi files in the graal2001/levels/midis folder, and write them to the client.midi string

Reply With Quote