|
유영인.Chris 님이 쓰신 글 :
: 어떤 클래스의 SaveToFile인지는 잘 모르겠으나,
: 흔히 말하는 SaveToFile은 Append를 지원하지 않는 것으로 알고 있습니다.
:
: 따로 알고리즘을 구현하시는 것이 좋으실 것 같습니다.
:
:
TOpenDialog *op = new TOpenDialog(this);
TFileStream *fs;
AnsiString str_FPath;
op->Title = "Open Text File";
if( !op->Execute() )
{
return;
}
str_FPath = op->FileName;
delete op;
fs = new TFileStream(str_FPath, fmCreate||fmOpenWrite);
fs->Position = fs->Size;
fs->Write(Memo1->Lines->Text.c_str(), Memo1->Lines->Text.Length() );
delete fs;
아마 이렇게 하면 되지 않을까요... ㅋㅋ
즐프하세여~
|