| 139 | } |
| 140 | |
| 141 | lString8 readFileToString( const char * fname ) |
| 142 | { |
| 143 | lString8 buf; |
| 144 | LVStreamRef stream = LVOpenFileStream(fname, LVOM_READ); |
| 145 | if (!stream) |
| 146 | return buf; |
| 147 | int sz = stream->GetSize(); |
| 148 | if (sz>0) |
| 149 | { |
| 150 | buf.insert( 0, sz, ' ' ); |
| 151 | stream->Read( buf.modify(), sz, NULL ); |
| 152 | } |
| 153 | return buf; |
| 154 | } |
| 155 | |
| 156 | void TestWol() |
| 157 | { |