File.ReadDoubleWord

Top  Previous  Next

 

Syntax

function File.ReadDoubleWord(F: pointer): integer

 

Alternative Names

ibec_fs_ReadDoubleWord

 

Description

Reads four bytes as a doubleword from the given file-stream, if available, and returns it.

 

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

    /* read a 4 bytes as a double word */

    dwval = File.ReadDoubleWord(fs);

  finally

    File.Close(fs);

  end

end