Hi,
I have a file in the project which is called as it is.
var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("WindowsFormsApplication2.ds.cdx");
var bytes = new byte[stream.Length];
var read = stream.Read(bytes, 0, (int) stream.Length);
var molecule = MolImporter.importMol(bytes);
How can I give the path of the file.
I have given the path like this
var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(@"C:\\Users\\Srikanth\\Desktop\\ds.cdx");
It gives me an error.
Is there any other way to do it as I want to load file from any location.
Thanks,
Sri