INNER CODE UNIT · Python

WriteFile

firebase/FirebaseUI-Android · scripts/translations/base_string_script.py:88

  def WriteFile(self, file_name, file_contents):
    """
    Overwrite the contents of a file.
    
    :param file_name: path to the file to write.
    :param file_contents: string containing new file contents. 
    :return: None
    """
    with open(file_name, 'w') as myfile:
      myfile.write(file_contents)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…