bug-gawk
[Top][All Lists]
Advanced

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

[bug-gawk] Should file be closed if `getline < file` returns -1?


From: Peng Yu
Subject: [bug-gawk] Should file be closed if `getline < file` returns -1?
Date: Thu, 31 Jan 2019 15:41:14 -0600

My understanding is that there is no need to close file if `getline <
file` returns -1 as it fails to read the file (most likely the file is
never opened).

Is it so? Thanks.

-- 
Regards,
Peng



reply via email to

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