You request the remaining contents of an opened database file. To do so, you use the <file_handle> displayed by the system when you open the database file.
· You have opened a database file. The keyword CONTINUE in the reply shows that you have not yet read the entire file.
· You have the server authorization DBFileRead.
· You have determined the file ID of the file (see: Displaying a List of Database Files).
file_getnext <file_ID> <file_handle>
OK<NL>
[CONTINUE|END]<NL>
<file_length>:20<data_length>:20<NL>
<data><NL>
<data><NL>
...
OK<NL>
[CONTINUE|END]<NL>
<file_length><data_length><NL>
<data><NL>
Values for the Reply Fields
Field |
Description |
END |
Contents of the file have been completely transferred, file is automatically closed |
CONTINUE |
File has additional entries that have not been transferred due to the limited size of the reply memory. Call these by entering the command used above again |
<file_length> |
File length |
<data_length> |
Data length |
<data> |
Data value |
The total length of file is not determined again and is, therefore, set to 0.