I have a slight problem, I have a script which runs a contest site. At present there are three text files which store email addresses, at about 20,000 email addresses in each file.
In the admin area of this script I have to print out these lists in a scrollable text box, which is fine. My only problem is opening three files of this size takes ages - at the moment I am opening each file and using the while loop to print out each line. Is there a quicker way to do this? (I'm aware of storing it in memory and using a foreach loop, but apart from very resource demanding this isnt much quicker :( )