Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Assuming the files aren't delimited records and you just want to print them out line by line. You first open the directory, grab all the text files into an array.
Then print your header, loop over the array, open the text files, and print their results to the browser.
That's a very basic way to do it. You'll probably also want to add in some formatting (exercise left to the reader :). Update: Oops, I missed part of the question. You'll have to prompt for input, or accept the range of the text files first (do you want to do this via a form or the command line?). Then select only those files in the number range submitted. Update 2: ++ to Screamer for pointing out the error below. I updated the example accordingly. In reply to Re: Printing the Contents of Multiple Text Files from a Directory
by cjf
|
|