@UNQREADS[[u,]filename,"key"] : Read a value from an existing key in an UnQlite database.


uOptional flag that the key is Unicode (UTF16)
filenameDatabase opened with @UNQOPEN
keyKey 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.




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]