Latest versions
...
Menu  Language: fr
Search




Articles & Documents

Close Tutorials

Preferences

Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 434 members


Connected :

(nobody)
CPDB.Net

Friends News
Google Ads
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
Subscribe
Unsubscribe
24 Subscribers
Webmaster - Infos
Visits

   visitors

   visitors online

Pagerank
forum.gifForum - ppCompiler [EN] - Topic #57

Forum - Forum
ppCompiler [EN] - ppCompiler [EN]


active  Topic # 57  Problem Reading/Writing Random Files

31/12/2012 @ 02:08
by Edgar_Cervantes

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.


edgar

Write to Edgar_Cervantes   Post an answer  Top
Answer n° 1
--------
31/12/2012 @ 11:09
by Philippe

Anonymous


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).
Write to Philippe   Post an answer  Top
active topic active   closed topic closed   Sticky Sticky   New New message   -   Correct Correct message   Close Close topic   Make sticky Make sticky
[]
Forum Topic  Forum 




^ Top ^