Exemple #1
0
 /// <summary>
 /// Chargement d'une archive
 /// </summary>
 /// <param name="stream">Streamer de chaîne ouvert sur le fichier d'archivage</param>
 protected void DoLoad(StringStreamer stream) {
   sections = new SortedList() ;
   section  = null ;
   string line = stream.ReadLine() ;
   while (line != null) {
     if (IsSectionName( line )) 
       section = DoCreateSection( sections, line ) ;
     else
       DoAddLineToSection( section, line ) ;
     line = stream.ReadLine() ;
   }
 }