@UNQKVFA[[u,]filename,"key",filename[,length]] : Append the contents of a file to the value of an existing UnQlite key/value pair.
u | Optional flag that the key and value are Unicode (UTF16) |
filename | Database opened with @UNQOPEN |
key | Key to update |
filename | File to append to the existing value |
length | Optional length (in bytes) to write (if -1 or nor specified, write the entire file) |
The maximum file size is dependent on the amount of RAM and disk space available.
Returns 0 if successful, or the error text if not.
See also @UNQKVF.
Example:
This example opens a database named "test.db", and appends the file testfile.txt to the value of key aaa.
echo Testing file write and read
echo This is a test file > testfile.txt
echo %@unqopen[rwc,test.db]
echo %@unqkvfa[test.db,"aaa",testfile.txt]
echo %@unqclose[test.db]