Closes the currently opened file and prevents subsequent read/write operations. Use Flush to persist the data to disk without closing the file.
public void Close()