[Implemented] OpenFile( #File, FileName$, Options)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

[Implemented] OpenFile( #File, FileName$, Options)

Post by blueznl »

An additional flag for OpenFile, ReadFile and CreateFile that allows 'shared' access to a file, and if possible additional 'modes'...

#OpenFile_Share
#OpenFile_NoBuffer
#...

This would simplify concurrent file access, as currently PB locks a file. The use of NoBuffer would prohibit the use of file buffering (not something one would always like on files opened for sharing).
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )