File.WriteDoubleWord

Top  Previous  Next

 

Syntax

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

 

Alternative Names

ibec_fs_WriteDoubleWord

 

Description

Write the Value as four 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 an integer as 4 bytes */

    cnt = File.WriteDoubleWord(fs, 65536);

  finally

    File.Close(fs);

  end

end