Hi,
Instead of doing a sorting method, I was wondering if it's possible to open a file for appending to the *front* instead of the end?
ie. the following appends to the end of the file:
Is there a file operator that will send the output to the front (without overwriting the file) besides the operator ">>" that sends the output to the end?
Thanks,
Cake.
Instead of doing a sorting method, I was wondering if it's possible to open a file for appending to the *front* instead of the end?
ie. the following appends to the end of the file:
Code:
open(FILE, ">>database.txt");
print FILE "$topic§$currentdate§$message\n";
close(FILE);
Is there a file operator that will send the output to the front (without overwriting the file) besides the operator ">>" that sends the output to the end?
Thanks,
Cake.