core :: FileWriter :: open
path
for writing.
# Open the file at `path` for writing.
init open(path: String)
do
_file = new NativeFile.io_open_write(path.to_cstring)
self.path = path
_is_writable = true
if _file.as(not null).address_is_null then
last_error = new IOError("Cannot open `{path}`: {sys.errno.strerror}")
is_writable = false
end
end
lib/core/file.nit:278,2--288,4