def create_file_from_text(self, share_name, directory_name, file_name, <EOL>text, encoding='<STR_LIT:utf-8>', content_settings=None,<EOL>metadata=None, timeout=None):
_validate_not_none('<STR_LIT>', share_name)<EOL>_validate_not_none('<STR_LIT>', file_name)<EOL>_validate_not_none('<STR_LIT:text>', text)<EOL>if not isinstance(text, bytes):<EOL><INDENT>_validate_not_none('<STR_LIT>', encoding)<EOL>text = text.encode(encoding)<EOL><DEDENT>self.create_file_from_bytes(<EOL>share_name, directory_name, file_name, text, <NUM_LIT:0>,<EOL>len(text), content_settings, metadata, timeout)<EOL>
Creates a new file from str/unicode, or updates the content of an
existing file, with automatic chunking and progress notifications.

:param str share_name:
    Name of existing share.
:param str directory_name:
    The path to the directory.
:param str file_name:
    Name of file to create or update.
:param str text:
    Text to upload to the file.
:param str encoding:
    Python encoding to use to convert the text to bytes.
:param ~azure.storage.file.models.ContentSettings content_settings:
    ContentSettings object used to set file properties.
:param metadata:
    Name-value pairs associated with the file as metadata.
:type metadata: a dict mapping str to str
:param int timeout:
    The timeout parameter is expressed in seconds. This method may make 
    multiple calls to the Azure service and the timeout will apply to 
    each call individually.