![]() ![]() ![]() |
![]() |
put
Entity: predicate
Usage:
What is get(File, Length)
Serializes variable What, using the file with handle File from which getting several bytes (how much depend of Length).
Usage:
put(What, File, Length)
Serializes variable What, using the file with handle File in which putting several bytes (how much depend of Length).
If Length is b (from byte) then gets/puts one byte.
If Length is s (from small) then gets/puts two bytes.
If Length is l (from long) then gets/puts four bytes.
If Length is f (from float) then gets/puts four bytes in float format.
If Length is ll (from long long) then gets/puts eight bytes.
If Length is lf (from long float) then gets/puts eight bytes in float format.
Remark: The use of get and put will move the file position (you can change its value by the predicate set_file_pos).
See also:
open
close
get_file_pos
set_file_pos