<<<For internal use only>>> Create a .txt file that contains notes or records of the user's work through a string
1. filelog str:="Part 1 has been done."; // Output string to LogFile.txt under UFF
2. filelog str:="Start to test Part 2." newline:=1; // Start a new line when outputting the string
3. filelog str:="Begining" fname:=test path:=C:\ clear:=1; // specify the txt file to output
Please refer to the page for additional option switches when accessing the x-function from script
Input
string
int
This X-function can be used to create a .txt file that contains notes or records of the user's work through a string.
This example summarizes the number of columns of all worksheets and outputs into a logfile. The example is also using LabTalk document command
filelog str:="Summary of column numbers: " fname:=test path:=C:\ clear:=1; // create logfile with name text.txt // loop over all worksheets, skip matrices. doc -e LB { if(exist(%H,2)==0) //not a workbook, must be a matrix continue; int nn = wks.nCols; string str=wks.Name$; filelog str:="[%H]%(str$) has $(nn) columns" fname:=test path:=C:\ newline:=1; // output to logfile }
Keywords:-