/// <summary>
/// Load an Encog script.
/// </summary>
/// <param name="stream">The stream to load from.</param>
public void Load(Stream stream)
{
EncogReadHelper reader = null;
try
{
EncogFileSection section;
reader = new EncogReadHelper(stream);
while ((section = reader.ReadNextSection()) != null)
{
ProcessSubSection(section);
}
// init the script
_script.Init();
}
finally
{
if (reader != null)
{
reader.Close();
}
}
}