I have a few very large text files that weigh over 1GB and I constantly need to add a line to the top / beginning of the file with PHP.
I know how to do this but what is the most efficient way in doing this in terms of memory usage?
I have a few very large text files that weigh over 1GB and I constantly need to add a line to the top / beginning of the file with PHP.
I know how to do this but what is the most efficient way in doing this in terms of memory usage?