fileblob (<file> {,<map>})
blob
A blob derived from the contents of a file.
<file>
The file from which the blob is to be initialized.
<map>
A numeric value indicating whether the file is to be memory-mapped. When
a file is memory mapped (value 1), the blob contents are effectively read-only
and always reflect the current contents of the file, even if the file has
been changed since this function was invoked. The default behavior is value
0, where the blob is created as a snapshot of the file, and even if the
file contents subsequently change, the blob contents do not.
Create a blob from the contents of a file.
blob b = fileblob('c:/temp/myfile.dat')
Create a read-only blob from the mapped contents of a file.
blob b = fileblob('c:/temp/myfile.dat',1)
Functions: |
|
Structures: |