According to the API documents, File.GetFiles
returns an array:
If the operation was successful, this will return the files as an array. Otherwise, it will return "FAILED".
You specify an index because it returns an array and File.ReadContents
expects a single instance.
View the API here: http://smallbasic.com/doc/?id=6