Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FRead(nFile,-410,2) doesn't work anymore
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01117204
Message ID:
01117207
Vues:
15
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform