bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gawk] Is close() better to be used for file reaching the end?


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]