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, validate_content=False, 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, count=len(text), <EOL>content_settings=content_settings, metadata=metadata, <EOL>validate_content=validate_content, timeout=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 bool validate_content:
    If true, calculates an MD5 hash for each range of the file. The storage 
    service checks the hash of the content that has arrived with the hash 
    that was sent. This is primarily valuable for detecting bitflips on 
    the wire if using http instead of https as https (the default) will 
    already validate. Note that this MD5 hash is not stored with the 
    file.
: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.