in reply to Append incomplete

There's no problem with that code. Why don't you check if print or close returned an error?