can i declare a string array, without knowing exactly the number of array?

am trying to write a function that stores all my filenames inside an array of strings

Remind us about the constraints on filenames.