load multiple files into single array
hi, I have two ordinary .txt files with several lines of text in both of them. What I want to do is to load the text of both files into a single array, is that possible?
note: the number of text-files will vary depending on user input.
at the moment I have:
PHP Code:
fileNames = ["text1.txt", "text2.txt"];
and I know you can use loadVariablesNum if you have only one file to load, but as soon as I've got two or more it just overwrites the old loaded text instead of adding it to the array.
any solutions?
thanks