Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Control TFileStream

mvillaramvillara Member Posts: 2
Hi Everyone. I'm using the TFileStream component with the next code to save the content of a StringGrig:

[code]TFileStream *file;
try {
file = new TFileStream("ProgConfig.cfg", fmCreate | fmShareExclusive);
file->WriteComponent(Grid);
}
__finally {
delete file;
}[/code]

Well, this only save the configuration of the StringGrid and not the information i type. I mean, when i load the file saved, only the format and rows created apear and not the content. Whats worng?

Thanks in advance.

Comments

Sign In or Register to comment.