That's what I was going to use, but in FPC it is in the DOS unit ... so I wasn't sure. I might as well try it I guess.

Edit: I'm thinking of, in that loop, using a "callback" to the script to as a function to add a string to the record. How would I code the pascal part to accept the parameter of an "inline" function, and then call that function with a single variable during that loop? I'd call the function sorta like this:
Code:
system.find("library/*.lua",function(file) table.insert(library_files,file) end)