Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FRead(nFile,-410,2) doesn't work anymore
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01117204
Message ID:
01117207
Views:
16
It's VFP9SP1 bug with FSEEK() on unbuffered file. The workaround is to open file in the buffered mode, as you already found.

>
>I have a old application that use to work fine until I (think) updated VFP9 SP1.
>
>I need to go to the end of file (TXT) and then, skip -410 positions, and then write something new.
>
>The code that always (until now) worked fine is below:
>
>nFile = FOpen("FILE.TXT",12)
>FSeek(nFile,-410,2)
>FPuts(nFile, "MY NEW TEXT HERE")
>
>
>Now, maybe after update my VFP9 to SP1, I have to do that:
>
>nFile = FOpen("FILE.TXT",12)
>FSeek(nFile,0,2)
>FSeek(nFile,-410,1)
>FPuts(nFile, "MY NEW TEXT HERE")
>
>
>Strange.... :-)
>
>Any comments.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform