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,166 |
| Nodes: | 17 (1 / 16) |
| Uptime: | 419:53:30 |
| Calls: | 509,423 |
| Calls today: | 9 |
| Files: | 262,754 |
| D/L today: |
6,069 files (1,677M bytes) |
| Messages: | 469,910 |
| Posted today: | 5 |