Class FileManager
Tool for reading and writing text files.
-
App\Model\FileManager
uses
Nette\SmartObject (not available)
Methods summary
public
|
#
__construct( App\Model\string $configDir )
Constructor
Parameters
- $configDir
- Directory with files
|
public
string
|
#
read( App\Model\string $fileName )
Read file
Parameters
Returns
string File content
|
public
|
#
write( App\Model\string $fileName, array $content )
Encode JSON from array and write JSON file
Encode JSON from array and write JSON file
Parameters
- $fileName
- File name
- $content
- File content
|