User Profile

Collapse

Profile Sidebar

Collapse
bluewavessurf
bluewavessurf
Last Activity: Oct 14 '10, 03:29 AM
Joined: Oct 12 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • bluewavessurf
    replied to How to read a directory and it's files
    in Perl
    Code:
    opendir MYDIR, "c:\data";
    @contents = readdir MYDIR;
    closedir MYDIR;
    
    foreach $listitem ( @contents )
    {
      print $listitem;
    }
    But I am not sure if I am going correct way and kind of lost
    See more | Go to post
    Last edited by Atli; Oct 15 '10, 12:31 AM. Reason: Please use [code] tags wen posting code.

    Leave a comment:


  • bluewavessurf
    started a topic How to read a directory and it's files
    in Perl

    How to read a directory and it's files

    I want to implement a Perl Program that takes a directory path, ex (d:\programs) as an INPUT and this directory could have multiple files for this program let’s say 5 files (doc1, doc2, doc3, doc4, and doc5). This program should print the average time to open and read all these five files into OUTPUT. How can I read the files in blocks of 64 KB?
    See more | Go to post
No activity results to display
Show More
Working...