int CharacterListMgnt::writeAllToFile ( char *  filename  ) 

Definition at line 223 of file CharacterListMgnt.cpp.

00223                                                     {
00224     FILE* datei;
00225     datei = fopen(filename,"r");
00226         if(datei != NULL){ //erasing file backupfile content if file exists
00227                 fclose(datei);
00228                 datei = fopen(filename,"w");
00229                 fclose(datei);
00230         }
00231         int counter = 0;
00232     while( ciVector.size() > counter ){
00233         if( ciVector[counter]->writeObjectToFile(filename) ){
00234             return 1; //writing objects to files failed
00235         }
00236         counter = counter + 1;
00237     }
00238     if( counter == 0 ){
00239         return 2;
00240     }
00241     return 0;
00242 }


Generated on Wed Jun 25 14:47:07 2008 for keyvil by  doxygen 1.5.1