Ok. So I'm very new on this and I'm sure the answer is insanely simple.
I'm wanting to open any file (image, zip, etc) and convert that to a string so I can put it in a memo.
Actually, I just need it in a string. Memo part is just for testing.
My code is this right now.
(Pretty much exactly from http://www.functionx.com/bcb/fileprocessing/vclfilestream.htm
[code]void __fastcall TForm1::btnOpenClick(TObject *Sender)
if( OpenDialog1->Execute() )
FStream = new TFileStream(OpenDialog1->FileName,
fmOpenRead | fmShareExclusive);
The commented out lines are the 2 that I've tryed.
I'm having a hard time understanding how TFileStream actually works even though I've searched online...