Nov 14, 2014, 3:33 AM
Post #1 of 2
Simple question about File handling
I have a perl script file that can take a few hours to run. I At the start of the script I open the file:
Then as the script run print to the file:
Then only close the file at the very end of the script.
Is this best practice or would I be better to open and close the file every time I want to add to it?