filestore.php - complete readLines function