Tmp file handler

dev-main 2022-09-28 11:36 UTC

This package is auto-updated.

Last update: 2024-04-29 04:54:10 UTC


README

Simple lib for work with tmp file.

Example

$filePath = 'some/file/path';
$tmpHandler = new \KnightWithKnife\Tmp\File($filePath);
$tmpHandler->write($testData);
$tmpHandler->append($testData);
$data = $tmpHandler->read();
$data = $tmpHandler->lazyRead();
$tmpHandler->delete();