code: def _write_data(self, file):
          
          self.write_case_data(file)
  
          file.write("Bus Data\n")
          file.write("-" * 8 + "\n")
          self.write_bus_data(file)
          file.write("\n")
  
          file.write("Branch Data\n")
          file.write("-" * 11 + "\n")
          self.write_branch_data(file)
          file.write("\n")
  
          file.write("Generator Data\n")
          file.write("-" * 14 + "\n")
          self.write_generator_data(file)
          file.write("\n")
docs: Writes case data to file in ReStructuredText format.