Close() public method

Close the file.
public Close ( ) : void
return void
Example #1
0
 public void Load(Stream stream)
 {
     EncogReadHelper helper = null;
     try
     {
         EncogFileSection section;
         helper = new EncogReadHelper(stream);
         while ((section = helper.ReadNextSection()) != null)
         {
             this.xf9edee23632d6876(section);
         }
         this._x594135906c55045c.Init();
     }
     finally
     {
         if (helper != null)
         {
             helper.Close();
         }
     }
 }
Example #2
0
        /// <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();
                }
            }
        }