Articles & Documents

Fermer Tutoriaux

Lettre d'information
Pour avoir des nouvelles de ce site, inscrivez-vous à notre Newsletter.
Se désabonner
22 Abonnés

Nouvelles des Amis


   visiteurs en ligne

Webmaster - Infos
forum.gifForum - ppCompiler - Sujet n°57

Forum - Forum
ppCompiler - ppCompiler

actif  Sujet n° 57  Problem Reading/Writing Random Files

le 31/12/2012 @ 02:08
par Edgar_Cervantes


I created a data file using a rewirite() precedure call followed by a set of write() procedure calls and finally a close() precedure call. At this point everything is Ok.

When I try to access the file in a Random way I have a problem.

I open the file using reset() procedure call, then I can do any number of seek() + read(). No problem.

If I try to seek() + write() sequence it apears no problem, but then I do a seek() + read, no right data are in a record. Still is the data I have written previously.

I have a question. Can I do seek()+read() and seek()+write() on a data file without close() the file between them?

Thanks in advance for your time.


Ecrire à Edgar_Cervantes   Poster une réponse  Haut
Réponse n° 1
le 31/12/2012 @ 11:09
par Philippe


I will have a precise look on this problem.At first glance, I think that the problem comes from the fact that a file cannot be at the same time open for inspection (reset) and for generation (rewrite).
Ecrire à Philippe   Poster une réponse  Haut
actif sujet actif   clos sujet clos   Important! Important!   Nouveau Nouveau message   -   Rectifier Rectifier message   Clôturer Clôturer sujet   Remonter Remonter
Catégories de discussion  Forum 

^ Haut ^