file::reopen()
Close the current handle and reopen a file
file::reopen(filename, mode)
filename
(string) — File name to be openedmode
(number) — File mode
boolean
— Returns true
if file can be opened, and returns false
if otherwise
import fileio
f = file("data.txt", file_write) ' f is associated to file data.txt
f.reopen("another.txt", file_read) ' f is now associated to file another.txt
f.close()
This member function is available on Dinfio version 3.1.06 or later