>> procedure x (const str: string); >> begin >> filewrite (filedescriptor,pchar(str+#13#10)^,length(str)+2); >> end; > > I do not think this should work. You can't pass the address of a temp > like this. Fixed for delphi mode only