newbie ?: how to get files and their extensions into seperate variables
Posted on 2004-04-13
how do i do this? i want to do it so that if the argument sent to it is one then it gets the first 20 files and their extensions and puts them in the variables filename1,filename2...filename20 and fileext1,fileext2...fileext20 and it the argument is 2 then display the next 20 files put in the same variables.
and obviosly if there are only 15 files then leave the last 5 blank.
someone game me the code to display the contents of a folder but i cannot seem to adapt it to this.