Code: Select all
OpenFile( <nr> , <name> [ , <flags> [ , <buffersize> ]] )
#PB_FILE_READ
#PB_FILE_WRITE
#PB_FILE_SHARED
#PB_FILE_NOCACHE
and buffer (optional) sets the size of the read ahead buffer in memory (to speed up *reading* file access)
writing to the file (when opened for r/w) should either update the cache, force it to be refreshed on the next read instructions, or caching should not be allowed in combination with r/w
(why optional? you don't want the cache to give you old data when another program is writing into the file...)