File.WriteWord

Top  Previous  Next

 

Syntax

function File.WriteWord(F: pointer; Value: integer): integer

 

Alternative Names

ibec_fs_WriteWord

 

Description

Write the Value as 2 bytes to the given file-stream, if available, and returns the number of bytes written.

 

See also

File.Open
File.Close
File.EOF

 

Example

execute udsblock returns (valueout varchar(1024))

as

begin

  /* open a binary file */

  fs = File.Open('c:\data\sample.dat, __fmOpenReadWrite + __fmShareDenyWrite); 

  try

    /* write 2 bytes from the integer value */

    cnt = File.WriteWord(fs, 65536);

  finally

    File.Close(fs);

  end

end