loadFromFile (method)

Copies contents of a file-based vault into the in-memory vault.

Syntax

- (void)loadFromFile:(NSString*)fileName;
public func loadFromFile(_ fileName: String) throws -> Void

Remarks

This method loads the contents of the vault, specified by FileName, into the class.

If the in-memory vault is not opened, LoadFromFileopens an in-memory vault. If the in-memory vault is already opened, it is closed by this method.

If the vault is encrypted, then before calling LoadFromFile, the application should set proper values to VaultEncryption and VaultPassword properties.

Note: This method can only be called when Active is true, and cannot be called within events.

Copyright (c) 2021 Callback Technologies, Inc. - All rights reserved.
CBFS Storage 2020 iOS Edition - Version 20.0 [Build 8031]