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,067 |
Nodes: | 17 (0 / 17) |
Uptime: | 16:24:24 |
Calls: | 501,255 |
Calls today: | 2 |
Files: | 109,409 |
D/L today: |
5,622 files (8,380M bytes) |
Messages: | 302,080 |
Posted today: | 1 |