LogFile.CREATETEMPFILE(); LogFile.TEXTMODE(TRUE); LogFile.WRITE('xxx'); LogFile.CREATEINSTREAM(NewStream); FileName := STRSUBSTNO(Textxxx,WORKDATE); DOWNLOADFROMSTREAM(NewStream,'','<TEMP>', '',MagicPath); CREATE(FileSystemObject,TRUE,TRUE); FileSystemObject.CopyFile(MagicPath,FileName); FileSystemObject.DeleteFile(MagicPath,TRUE);The customer now wants to have a unique log file, meaning that the errors have to be appended each time in the same file.
Comments
http://mibuso.com/blogs/mohana/2011/09/11/how-to-create-a-text-file-and-writeappend-text-into-the-file
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav