File
Table of Contents
Working with files.
Configuration
File::$state = [
// Range of allowed file sizes
'size' => [ … ],
// List of allowed file types
'type' => [ … ],
// List of allowed file extensions
'x' => [ … ]
];
Create an empty file or open file if it already exists:
$file = new File('.\path\to\file.txt');