code: def read(path, binary=False):
      '''
      .. versionadded:: 2017.7.0
  
      Return the content of the file.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.read /path/to/file
      '''
      access_mode = 'r'
      if binary is True:
          access_mode += 'b'
      with salt.utils.files.fopen(path, access_mode) as file_obj:
          return salt.utils.stringutils.to_unicode(file_obj.read()f read(path, binary=False):
      '''
      .. versionadded:: 2017.7.0
  
      Return the content of the file.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.read /path/to/file
      '''
      access_mode = 'r'
      if binary is True:
          access_mode += 'b'
      with salt.utils.files.fopen(path, access_mode) as file_obj:
          return salt.utils.stringutils.to_unicode(file_obj.read())
docs: .. versionadded:: 2017.7.0
  
      Return the content of the file.
  
      CLI Example:
  
      .. code-block:: bash
  
          salt '*' file.read /path/to/file