Amanda,
There is a 2Gb file size limit on VFP files. Perhaps its the same limit on any file that VFP can access? If your same code works on a smaller file then this must be the answer.
>I tried it with a smaller file and it does work. I was hoping to keep the 2 GB file in one piece but I don't think that's possible.
>
>Thank you!
>
>
>>XH=FOPEN("ststock.txt") && Read only Mode
>>x=fseek(xh,0,2) && Zero bytes Relative to End of file
>>
>>
>>
>>I try is it work fine with 82Kb file
>>
>>Y too try it wit small file size
>>
>>But its clear that it work fine
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.