I'm trying to read a byte files. I can find out the length of the file with the filesize command.
Here's the code:
TCurveLoad = record
name:array[1..110] of byte;
end;
TCurveLoadFile = file of TCurveLoad;
The 110 value is the size in bytes of the file. To write the file, it's no problem but to read it, how do i make it name:array[1..66] of bytes if the file is only 66 bytes.
I hope i'm making sense.
Thanks.
PO
Here's the code:
TCurveLoad = record
name:array[1..110] of byte;
end;
TCurveLoadFile = file of TCurveLoad;
The 110 value is the size in bytes of the file. To write the file, it's no problem but to read it, how do i make it name:array[1..66] of bytes if the file is only 66 bytes.
I hope i'm making sense.
Thanks.
PO