in reply to program for getting the name of the software from the software folder

Hello Pearlpet,

Can you be a bit specific? Are you sure that the folder contains those(readme.txt, version.txt) files and those inturn contain the required information?
If yes, writing perl is in minutes. You just need to open those files and parse for a specific pattern to grab the information.
  • Comment on Re: program for getting the name of the software from the software folder

Replies are listed 'Best First'.
Re^2: program for getting the name of the software from the software folder
by pearlpet (Initiate) on Apr 25, 2013 at 07:39 UTC

    I got the code as

    my $directory = 'C:/directory/dir/'; opendir(DIR,$directory); my @files = readdir(DIR); closedir(DIR); foreach(@files){ print $_,"\n";

    but what i need is the code for getting the file which has version and its software name .

    readme.txt,version,install.php is just an example where we can get easily the requirement. i want the code to find that.