IFileHandlerWrite Method (IJChemMolecule, MoleculeFormat, MoleculeEncoding)ChemAxon .NET API
Creates a new chemical file, writes the chemical information to the file and then closes the file. If the target file already exists, it is overwritten. A return value indicates whether the writing succeeded.

Namespace: ChemAxon.NET.API.IO
Assembly: ChemAxon.NET (in ChemAxon.NET.dll) Version: 1.0.0.1
Syntax

bool Write(
	IJChemMolecule molecule,
	MoleculeFormat format,
	MoleculeEncoding encoding
)

Parameters

molecule
Type: IJChemMolecule
Molecule
format
Type: MoleculeFormat
The chemical format of the file
encoding
Type: MoleculeEncoding
The encoding of the file

Return Value

Type: Boolean
true if the writing succeeded; otherwise false
See Also

Reference