Well, basically, what you want is reading a file, splitting it into a array, using split, split on the seperating character, which, in your example would be an space.
Then put the list into the desired variables.
First read the directory using readdir, and finally remove them using unlink.
Comment on Re: Re: Re: Pick Up Files and put contents into variables