I found the snippet on the html swag that explain'd it.
http://www.bsdg.org/SWAG/FILES/0003.PAS.html
now, i am having trouble with blockread/write.
I want to write to a file using a record that will allow only
the used length of the vars to be wrote.
for the life of me remember how I did it. I think I used a
pchar in the $x+ state with a array[0..1023] of char linking
the pchar and the array and using StrPas or StrCopy to copy
to a string to store in a record.
type
TBuffer = {$ifdef} virualpascal {$enddef} record
ch : char;
end;
var
Buffer : array[0..1023] of ^TBuffer;
PBuffer : PChar;
Which sucks cause I would have to referance each one with the
brackets
[xx] buffer[xx].^ch, but would accompish what I want, but I think
there is a better way.
var
Buffer : array[0..1023] of ^TBuffer;
PBuffer : PChar;
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,029 |
Nodes: | 17 (1 / 16) |
Uptime: | 194:08:16 |
Calls: | 503,710 |
Calls today: | 13 |
Files: | 158,962 |
D/L today: |
21,868 files (5,358M bytes) |
Messages: | 444,588 |
Posted today: | 5 |