>>The STRTOFILE command can be used repetitively in the FoxPro interactive mode to write line after line to a file. When the program is built into an executable the first STRTOFILE writes to the file and subsequent ones are ignored. Anyone know why this happens?
>
>I saw you left a message to this effect yesterday, but I've never had that problem. I use FILETOSTR & STRTOFILE extensively without a hitch.
>
>If it works the first time, but then fails on subsequent times why don't you try just building a large string and doing the STRTOFILE() once?
Alternatively, there's the low-level file I/O approach available to you (FCREATE/FWRITE repetitively) which has worked forever...