in reply to How do i take the first 4 characters of any file name in a specified directory?
How about the substr function?
I would use something differrent to read the content of a directory: the opendir, readdir and closedir functions. Also the strict and warnings pragma's are missing.
|
|---|