OS is Ubuntu Linux 9.10/Python Version is 2.6.4/Gui Tool is Dr. Python
My program has a large html-coded string called tarr_record. When I try to open an output file and write the record to the file, I receive the following error:
AttributeError: 'str' object has no attribute 'write'
[CODE=Python]
open(output_fil e, "a")
output_file.wri te(tarr_record + "\n")
output_file.clo se()
[/CODE]
My program has a large html-coded string called tarr_record. When I try to open an output file and write the record to the file, I receive the following error:
AttributeError: 'str' object has no attribute 'write'
[CODE=Python]
open(output_fil e, "a")
output_file.wri te(tarr_record + "\n")
output_file.clo se()
[/CODE]
Comment