|
아 글쿤여 내용을 볼라면 저장 형태를 음 어떻게 해야 하나요?
송신영 님이 쓰신 글 :
: TFileStream 은 바이너리로 저장됩니다.
:
: 축구 님이 쓰신 글 :
: : st_Test stTest;
: :
: : stTest.nTestSize = AData.Length;
: : stTest.DateTime = now;
: : stTest.strIP = strIP;
: : stTest.strPORT = strPORT;
: :
: : TFileStream *pSendHeaderData = new TFileStream(Edit1->Text, fmOpenWrite|fmShareExclusive);
: :
: : pSendHeaderData->Seek(0, SEEK_END);
: :
: : pSendHeaderData->Write((void *)&stTest, sizeof(st_Test));
: : pSendHeaderData->Write(&AData[0], AData.Length);
: :
: : delete pSendHeaderData;
: :
: : 파일보니까 깨져있더라고요 a.txt에 저장했는데 왜 깨져서 보이는것이죠?
|