LogFile.CREATETEMPFILE(); LogFile.TEXTMODE(TRUE); FileName := LogFile.NAME; LogFile.WRITE('some info'); LogFile.CLOSE; LogFile.OPEN(FileName); cdu419.AppendAllTextToClientFile(FileName,rSalesSetup."Post & Print Logfile Path"+rSalesSetup."Post & Print Logfile Name"+'.txt');
This message is for C/AL programmers: A call to System.IO.File.ReadAllText failed with this message: Could not find file 'C:\ProgramData\Microsoft\Microsoft Dynamics NAV\70\Server\ddd\users\eee\www\TEMP\__TEMP__73abda84b2ed4d91933c5772f0dfb1da.tmp'.__TEMP__73abda84b2ed4d91933c5772f0dfb1da.tmp is the name of the temp file I created (I checked).