PC Review Forums Newsgroups Windows 2000 Microsoft Windows 2000 Developer File IO question

Reply

File IO question

 
Thread Tools Rate Thread
Old 09-03-2004, 10:26 PM   #1
Mark Henry
Guest
 
Posts: n/a
Default File IO question


Question about file IO...
The basic scenario is that process A creates a file, writes it out, and
closes the file. Process B immediately opens the same file and reads
it. Is it possible that Windows hasn't fully written out the file when
process B opens it? Having process A flush the file out to disk before
closing it wouldn't be a good option for us, because it would severely
hamper the performance - a lot of file IO is going on. So, is there a
way to get a guarantee from Windows that the file exists in its entirety
- using file locking, perhaps?

-Mark-
  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off