Function file::reopen()

← Back to Class file



Module fileioClass file → reopen()

Description

Close the current handle and reopen a file

file::reopen(filename, mode)


Parameters


Return Value


Usage Example

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()


Availability

This member function is available on Dinfio version 3.1.06 or later