@UNQKVFA[[u,]filename,"key",filename[,length]] : Append the contents of a file to the value of an existing UnQlite key/value pair.

 

uOptional flag that the key and value are Unicode (UTF16)
filenameDatabase opened with @UNQOPEN
keyKey to update
filenameFile to append to the existing value
lengthOptional 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]