Forum Moderators: coopster
However, if you have files open for writing then you usually want to close them as soon as possible because (A) that way they are definitely flushed if the script suffers a fatal error and (B) if another user is running the script at the same time, they may be blocked till they can get write access to the file.