Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FRead(nFile,-410,2) doesn't work anymore
Message
 
 
À
27/04/2006 19:39:24
Neil Mc Donald
Cencom Systems P/L
The Sun, Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01117204
Message ID:
01117702
Vues:
20
Hi Neil,

You're welcome.

>Thanks Sergey, I have been trying to figure this one out for the last couple of days.
>
>>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
Répondre
Fil
Voir

Click here to load this message in the networking platform