Skip to content

nifrasismail/ReadFile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Read Text Files - FileRead Packagist

This package helps to convert any text file to array. So it is makes life easier to read the file in array format.

Usage

where ever you need to read the file just adding the path of the text file as follow. usually people put their files on storage directory of laravel

use Nertlab\FileRead\FileProcessor\Read;

$contents = (new Read())->readFile(storage_path('app/myFile.txt'));

By default we are set delimiters of line are \n and word delimiter as\t you can by pass this as follow

use Nertlab\FileRead\FileProcessor\Read;

$contents = (new Read())->readFile(storage_path('app/myFile.txt'), "\n", "\t");

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages