StrFile() doesn't seem to allow writing a string to the very beginning of a file
Posted: Sun Aug 02, 2020 1:10 pm
Hi,
If we call StrFile as
, then the string
Initial Bytes
is written to the end of the file.
If you write
, then the string is written properly beginning with the second byte (byte 1).
But there doesn't seem to be any way to write a string starting with the first byte (byte 0).
If we call StrFile as
Code: Select all
STRFILE( "Initial Bytes", "File.dat", .T., 0 )
Initial Bytes
is written to the end of the file.
If you write
Code: Select all
STRFILE( "Initial Bytes", "File.dat", .T., 1 )
, then the string is written properly beginning with the second byte (byte 1).
But there doesn't seem to be any way to write a string starting with the first byte (byte 0).