in reply to Read first line from each file in a directory
Already did, they work.
I tried it without quotations, and it adds a new warning: "readline() on closed filehandle WRITE"
and I did check opendir and readdir, they both work. Also, I'm not working in the root folder by accident
And your opendir will only work (by accident) if you are in the root folder when you start the script.
Yes, I watch meteor showers
No, I do not watch meteor showers
My meteors prefer to bathe
Results (186 votes). Check out past polls.