in reply to Pick Up Files and put contents into variables

*removed*

Ok, in my enthousiasm, i made a mistake providing a total uncommented code solution.

I support Giant's comment and the Homework node.

  • Comment on Re: Pick Up Files and put contents into variables

Replies are listed 'Best First'.
Re: Re: Pick Up Files and put contents into variables
by Anonymous Monk on Aug 30, 2002 at 11:31 UTC
    vennis,

    Is there any chance of unremoving that code? I have been trying to do this for bloody ages now and have got nowhere. I'm about to pull all of my hair out :(
      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.