tltemplates / txtfile
A class to help read and write file to txt file faster
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/tltemplates/txtfile
Requires
- php: ^5.2 | ^7.2
This package is auto-updated.
Last update: 2025-10-27 12:59:43 UTC
README
A small PHP library to help read and write data to text file
Usage
Create class to handle a file
//access the file
$file = new TxtFile('text.txt');
//access the file and create if it does not exist
$file = new TxtFile('text.txt', true);
Read content of the file
//store result in an array
$array = $file->readAllAsArray();
//store result in a string
$content = $file->readAllAsString();
Read more on TL Dev Tech