/// <summary>
/// operator that performs PCA. The previously stored data, if any, is released
/// </summary>
/// <param name="fileName"></param>
/// <param name="flags"></param>
/// <param name="encoding">Encoding of the file. Note that UTF-16 XML encoding is not supported
/// currently and you should use 8-bit encoding instead of it.</param>
/// <returns></returns>
public virtual bool Open(string fileName, Mode flags, string encoding = null)
{
ThrowIfDisposed();
if (fileName == null)
{
throw new ArgumentNullException(nameof(fileName));
}
int ret = NativeMethods.core_FileStorage_open(ptr, fileName, (int)flags, encoding);
return(ret != 0);
}