File.WriteByte

Top  Previous  Next

 

Syntax

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

 

Alternative Names

ibec_fs_WriteByte

 

Description

Write a single byte from Value 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 1 bytes */

    cnt = File.WriteByte(fs, 200);

  finally

    File.Close(fs);

  end

end