Hi, I have a program where part of a record in a file that I need to read in has to be longer than 255 characters. Using records, this is the most I can get up to, so I was wondering if streams let you have longer strings (or some equivalent). The Delphi 3 (I know, I know) help files aren't very helpfull on the subject of streams, so does anyone have any pointers?
The record structure I'm stuck with at the moment is
ItemType = Record
Cat,SubCat,Name:String[100];
Content:String[255];
end;
The content string needs to be about 500 characters in length, might be more when I have it worked out. If I can have dynamic length strings that would be a lot more helpfull.
So, can anyone show me any sample code or anything, thanks in advance.
(remember it's D3, fancy stuff like dynamic arrays aren't in yet, desperately need to get my hands on a newer version)
The record structure I'm stuck with at the moment is
ItemType = Record
Cat,SubCat,Name:String[100];
Content:String[255];
end;
The content string needs to be about 500 characters in length, might be more when I have it worked out. If I can have dynamic length strings that would be a lot more helpfull.
So, can anyone show me any sample code or anything, thanks in advance.
(remember it's D3, fancy stuff like dynamic arrays aren't in yet, desperately need to get my hands on a newer version)