Create packer with recursive inclusion and deduplication
This commit is contained in:
10
includes/fileReader.php
Normal file
10
includes/fileReader.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
function getAllLines(string $file): iterable
|
||||
{
|
||||
$handle = fopen($file, 'r');
|
||||
while (!feof($handle)) {
|
||||
yield fgets($handle);
|
||||
}
|
||||
fclose($handle);
|
||||
}
|
Reference in New Issue
Block a user