Skip to main content
Skip table of contents

f$FileWriteHex (f$DateiSchreibeHex)


f$FileWriteHex (f$DateiSchreibeHex)

Insert a binary value in the file previously opened for writing. This function is only useful if the file was opened in binary format (letter b). The value to be written is entered as a hexadecimal string of any length.

Syntax:

Status = f$FileWriteHex ( FileNo , Hexstring )

 

Argument

Type

Meaning

 

FileNo

Integer

File number

 

Hexstring

String

Value to be written into the file in hexadecimal form

Result:

Integer

0: successfully written

< 0 indicates an error

Example:

File name = 'c:\\temp\\testh.dat'

f$FileRemove( Filename )

FileNo = f$FileOpen( Filename, 'wb' )

Status = f$FileWriteHex (FileNo, 'F000FF000D0A' )

Status = f$CloseFile( FileNo )

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.