B
Billy
All,
I am looking for a way to open ALL files in a directory one by one in perl.
I am able to open one file... read in the data and write it out to another
file without any problems. But I have to tell the script the file I am
opening. I would like the script to open all .txt files read out some data
and append it to another file. The only part I am stuck on is the opening of
the files without providing the filenames.
I searched around and got tired of going in circles.
Say I have a directory that has...
bob.txt
ted.txt
sam.txt
sue.txt
index.html
Is there a simple way to open all the .txt files?
If this needs more info please let me know.
Billy
I am looking for a way to open ALL files in a directory one by one in perl.
I am able to open one file... read in the data and write it out to another
file without any problems. But I have to tell the script the file I am
opening. I would like the script to open all .txt files read out some data
and append it to another file. The only part I am stuck on is the opening of
the files without providing the filenames.
I searched around and got tired of going in circles.
Say I have a directory that has...
bob.txt
ted.txt
sam.txt
sue.txt
index.html
Is there a simple way to open all the .txt files?
If this needs more info please let me know.
Billy