Rixon,
You can't. You might try TEXTMERGE instead I don't recall if that EOFs the file or not. THe other thing that's pretty easy to do is to FileToStr() the file and write back out all but the last character. If you don't have VFP6 use a temp cursor memo field instead. Unless the file is huge the process is pretty fast.
>I'm trying to prevent an eof mark from appearing in a text file produced by the following code:
>
>set alte to textfile.txt
>set alte on
>? "test"
>set alte to
>
>
>This produces a text file that has the word test along with an eof mark (a square box)
>
>How do I prevent the square box from appearing ?
>
>Thanks in advance.
>
>Rixon Reed