1
0
mirror of https://github.com/Rogiel/php-mpq synced 2025-12-06 00:13:04 +00:00

Merge pull request #3 from WebReborn/patch-1

Update README.md
This commit is contained in:
2021-08-03 19:28:36 -03:00
committed by GitHub

View File

@@ -13,6 +13,7 @@ The recommended way of installing this library is using Composer.
use Rogiel\MPQ\MPQFile; use Rogiel\MPQ\MPQFile;
$file = MPQFile::parseFile(__DIR__.'/test.SC2Replay'); $file = MPQFile::parseFile(__DIR__.'/test.SC2Replay');
$file->parse();
$stream = $file->openStream('replay.details'); $stream = $file->openStream('replay.details');
while($data = $stream->readBytes(100)) { while($data = $stream->readBytes(100)) {
echo $data; echo $data;