Contents

Roo

File.closed?

Returns True if all of this File object’s internal input streams are currently closed, False otherwise.

var f = File("/Users/garry/Desktop/test.txt")
print(f.closed?) # True.