---------------------------------------------------------------------------
| 367 | } |
| 368 | //--------------------------------------------------------------------------- |
| 369 | String TStorageFile::RotationLogGetItem(int num) |
| 370 | { |
| 371 | // 0 - current file |
| 372 | if( num==0 ) |
| 373 | return GetFileName(); |
| 374 | |
| 375 | String rv; |
| 376 | TStringList * p = NULL; |
| 377 | try |
| 378 | { |
| 379 | p = new TStringList; |
| 380 | p->LoadFromFile( RotationLogFormatFileName() ); |
| 381 | if( num > 0 && num <= p->Count ) |
| 382 | rv = p->Strings[num-1]; |
| 383 | } |
| 384 | catch(...) |
| 385 | {} |
| 386 | delete p; |
| 387 | return rv; |
| 388 | } |
| 389 | //--------------------------------------------------------------------------- |
| 390 | //--------------------------------------------------------------------------- |
| 391 | //--------------------------------------------------------------------------- |
no outgoing calls
no test coverage detected