Skip to content

Instantly share code, notes, and snippets.

@mesprague
Created December 9, 2008 08:39
Show Gist options
  • Save mesprague/33844 to your computer and use it in GitHub Desktop.
Save mesprague/33844 to your computer and use it in GitHub Desktop.
using System;
using OpenBabel;
namespace OBDotNetExamples
{
class Program1
{
static void Main(string[] args)
{
OBConversion obc = new OBConversion();
vectorString inFileTypes = obc.GetSupportedInputFormat();
Console.WriteLine("Found " + inFileTypes.Count + " input formats.");
foreach (string s in inFileTypes)
Console.WriteLine(s);
Console.WriteLine();
vectorString outFormats = obc.GetSupportedOutputFormat();
Console.WriteLine("Found " + outFormats.Count + " output formats.");
foreach (string s in outFormats)
Console.WriteLine(s);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment