\App\CoreModule\ModelsFileManager

Tool for reading and writing text files

Summary

Methods
Properties
Constants
__construct()
getDirectory()
delete()
exists()
read()
write()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct(  directory) : 

Constructor

Parameters

directory

Directory with files

Returns

getDirectory()

getDirectory() : 

Return the directory with files

Returns

Directory with files

delete()

delete(  fileName) : 

Delete the file

Parameters

fileName

File name

Returns

exists()

exists(  fileName) : 

Check if the file exists

Parameters

fileName

File name

Returns

Is file exists?

read()

read(  fileName) : 

Read the file

Parameters

fileName

File name

Returns

File content

write()

write(  fileName,   content) : 

Write to the file

Parameters

fileName

File name

content

File content

Returns