Write a string record to the file. Args: record: str
(self, record)
| 227 | self.close() |
| 228 | |
| 229 | def write(self, record): |
| 230 | """Write a string record to the file. |
| 231 | |
| 232 | Args: |
| 233 | record: str |
| 234 | """ |
| 235 | with errors.raise_exception_on_not_ok_status() as status: |
| 236 | self._writer.WriteRecord(record, status) |
| 237 | |
| 238 | def flush(self): |
| 239 | """Flush the file.""" |