Hi!
A newbie doubt. I don't get the difference
between the FILE_SUPERSEDE and the FILE_OVERWRITE_IF
create requests.
Both cause a file to be truncated, right?
Manoj
=====
Manoj Paul Joseph,
Master of Computer Applications (final year student),
School of Computer Science and Engineering,
Anna University,
Chennai (Madras),
India.
For live cricket scores download Yahoo! Score Tracker
at: http://in.sports.yahoo.com/cricket/tracker.html
>Hi!
A newbie doubt. I don’t get the difference
between the FILE_SUPERSEDE and the FILE_OVERWRITE_IF
create requests.
Both cause a file to be truncated, right?
Manoj
Hi,
There is small difference between those two modes: FILE_SUPERSEDE
considered as a transaction that first deletes original file and then
creates new file. As the result in order to open file in FILE_SUPERSEDE
mode you should be able to get access to the file for deletion. Also
FILE_OVERWRITE_IF will preserve attributes of the original file, but
FILE_SUPERSEDE will not.
Alexei.