@UNQREADS[[u,]filename,"key"] : Read a value from an existing key in an UnQlite database.
u | Optional flag that the key is Unicode (UTF16) |
filename | Database opened with @UNQOPEN |
key | Key to read |
Returns the value as a string, or the error text. If the key doesn't exist (or doesn't have a value) @UNQREADS will not display anything.
Example:
Open the database "test.db", read the key "btest", and save the value to "result":
set db=test.db
set key=btest
set result=%@unqopen[rwc,%db]
set result=%@unqreads[%db,%key]