Creating an array from file input

J

johnd

Hello,

I need to create an array of file names from an existing text file. I
need to find out how to read a text file that contains the file names
on a multiple line text file. Each individual file name is on a single
line by itself.

I want to create an array of the file names to use as input to a
system command that will loop through the file names.


Thanks,

John
 
J

John W. Krahn

johnd said:
I need to create an array of file names from an existing text file. I
need to find out how to read a text file that contains the file names
on a multiple line text file. Each individual file name is on a single
line by itself.

I want to create an array of the file names to use as input to a
system command that will loop through the file names.

perldoc Tie::File


John
 
J

Joe Smith

johnd said:
I need to create an array of file names from an existing text file.
Each individual file name is on a single line by itself.

If you took a class on "Introduction to programming in Perl", go
back to the instructor and demand your money back. That sort of
information is presented early on in any decent tutorial.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top