|
From: | Peng Yu |
Subject: | [bug-gawk] Is close() better to be used for file reaching the end? |
Date: | Thu, 31 Jan 2019 15:02:28 -0600 |
while(getline < f) { do something } Suppose that I have the above code that read a file. Is it better to close the file manually? Or awk will close it automatically once it reaches the end of the file? close(f) -- Regards, Peng
[Prev in Thread] | Current Thread | [Next in Thread] |