Function writeAsEPShortString
Writes a string to file in standard Pascal shortstring format.
void writeAsEPShortString
(
string str,
ubyte capacity,
std .stdio .File file
);
In this format, the first written byte represents the length of the string. The string itself follows, truncated or
padded with '\0'
upto capacity
.
Parameters
Name | Description |
---|---|
str | The string to write. |
capacity | The length of the written data section. If the length of str exceeds capacity then trunctation
will happen. The written string is padded with '\0' upto capacity . |
file | The file to write to. |
Throws
See Also
readEPShortString, writeAsEPString.