>So does the strtofile() append the variable to the file each time we loop through the scan?
If you use STRTOFILE() inside the SCAN loop you just need to add the third parameter to append to the end of file.
STRTOFILE(lcString, cMyFileName, .t.)
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison