static function CreateWithText($path, $text)
    {
        $dir = Path::Directory($path);
        if (!Folder::Exists($dir))
            Folder::Create($dir);
        
        file_put_contents($path, $text);
    }
static function CreateWithText($path, $text)
    {
        $dir = Path::Directory($path);
        if (!Folder::Exists($dir))
            Folder::Create($dir);
        
        file_put_contents($path, $text);
    }
static function CreateWithText ( $ path , $ text ) { $ dir = Path :: Directory ( $ path ) ; if ( ! Folder :: Exists ( $ dir ) ) Folder :: Create ( $ dir ) ; file_put_contents ( $ path , $ text ) ; }
Creates a file and puts the text in it; if the file exists, the content is overwritten.
@param string $path
@param string $text
Creates a file and puts the text in it ; if the file exists the content is overwritten .