Hi,
Is it possible to keep certain sections of a file (ascii) non writable ?
Regards
Axial
Is it possible to keep certain sections of a file (ascii) non writable ?
Regards
Axial
Definitly maybe. You might look up record locking.
Files, in general, do not have records. Record level locking is enforced by applications. If you don't use a file with an enforcing application, the file is either entirely writable, or entirely nonwritable.
A database file can have secure record locking only if applications are not allowed to bypass the database software.
A database file can have secure record locking only if applications are not allowed to bypass the database software.
eet, have a look at the LockFile api function.
Wasn't aware of that function.
It works only as long as the file is open. Once you close it, the region will unlock, although there may be a delay in unlocking.
Once unlocked, it's still all or nothing write protection.
It works only as long as the file is open. Once you close it, the region will unlock, although there may be a delay in unlocking.
Once unlocked, it's still all or nothing write protection.