Ejemplo n.º 1
0
        private void save_button_Click(object sender, EventArgs e)
        {
            /*string path = @"save.brain";
             * File.Create(path).Close();
             * File.WriteAllText(path, Brain.StringifyBrainStructure());*/

            FileStream   fstream = new FileStream(@"save.brainStream", FileMode.Create);
            MemoryStream stream  = Brain.BuildStructureStream();

            stream.WriteTo(fstream);
            fstream.Close();
        }