TextWindow.attachLogFile


attachLogFile(filename, [captureExisting])

Attach the named file to the text window, such that all text added to the window is also added to the file

filenamestringabsolute or relative pathname of the file
captureExistingoptional boolean Copy the existing contents of the window to the file? If not specified, assumed to be true
Return valuenone 

Example

To capture all of the text currently in the window to a file


 call textWin.attachLogFile("C:\temp\myFile", true)
 call textWin.closeLogFile
 
To capture only the meshing warning messages to a file

 call textWin.attachLogFile("C:\temp\myFile")
 call database.updateMesh()
 call textWin.closeLogFile()
 

See also closeLogFile

Back to TextWindow

Back to Overview