⚡ fonksiyon
close
fonksiyon close
Closes a file and releases system resources.
Dosyayı kapatır ve sistem kaynaklarını serbest bırakır.
Parameters / Parametreler
file: File handle to close / Kapatılacak dosya handle'ı
Returns / Dönüş Değeri
Ok(void): Success / BaşarılıErr(String): Close error (rare) / Kapatma hatası (nadir)
Notes / Notlar
If using BufWriter, call buf_flush() first!
BufWriter kullanıyorsanız, önce buf_flush() çağırın!
Example / Örnek
değişken dosya = io.open("veri.bin", "Write")?
io.write_bytes_to_file(dosya, [0x89, 0x50, 0x4E, 0x47])?
io.close(dosya)?