| 546 | } |
| 547 | |
| 548 | String File::loadFileAsString() const |
| 549 | { |
| 550 | if (! existsAsFile()) |
| 551 | return {}; |
| 552 | |
| 553 | FileInputStream in (*this); |
| 554 | return in.openedOk() ? in.readEntireStreamAsString() |
| 555 | : String(); |
| 556 | } |
| 557 | |
| 558 | void File::readLines (StringArray& destLines) const |
| 559 | { |
no test coverage detected