updating oE put_integer16


include io.e 
namespace io 
public procedure put_integer16(integer fh, atom val) 

writes the supplied integer as two bytes to a file.

  1. fh : an integer, the handle to an open file to write to.
  2. val : an integer
  • This function is normally used with files opened in binary mode, "wb".
Example 1:
integer fn 
fn = open("temp", "wb") 
put_integer16(fn, 1234) 
See Also:

getc, gets, get_bytes, get_dstring

Not Categorized, Please Help


Quick Links

User menu

Not signed in.

Misc Menu