I need write the caculated result from my program together with some
interpretation text into a text file. STATA seems that it is only
capable of writing interpretation text into the specified text, but not
for caculated result. Please look at the following code:
file open handle using C:\temp\output.txt, write text
file write handle "RRFSS 2005 "
file write handle "Module objectives: "
file write handle "the upper confidence interval is: " lb1
file close handle
After running the program, I found that the value of the variable "lb1"
is not written into the text file. So I wonder whether there is a way to
output the value of a variable into a text file. Thanks!
Best regards
Sean Shu
Health Information Analyst
HKPR District Health Unit
200 Rose Glen Road
Port Hope, ON
L1a 3V6