| 382 | } |
| 383 | |
| 384 | string CScriptFile::ReadString(unsigned int length) |
| 385 | { |
| 386 | if( file == 0 ) |
| 387 | return ""; |
| 388 | |
| 389 | // Read the string |
| 390 | string str; |
| 391 | str.resize(length); |
| 392 | int size = (int)fread(&str[0], 1, length, file); |
| 393 | str.resize(size); |
| 394 | |
| 395 | return str; |
| 396 | } |
| 397 | |
| 398 | string CScriptFile::ReadLine() |
| 399 | { |
no outgoing calls
no test coverage detected