답변이 될런지 모르겠습니다..
여하튼 다음 질문부터는..
상황을 좀더 설명해 주시는 것이 어떨지요??
그리고 왜 Binary여야 하는지는 알수 없지만..
ini를 활용하는 것도 좋을 듯 합니다..
Binary로 다소 복잡한 구조를 한거번에..
저장 또는 읽으시려면..
Record Type을 사용하시는 것이 좋을 듯 합니다..
예를 들어서..
TUserOPtions = Record
ScreenWidth, ScreenHeight : Integer;
WorkingDirectory : String;
....
End;
Var
Options : TUserOptions;
// 쓰는 방법
Procedure ..........;
Var
OFile : File;
Begin
Assign(OFile, 'C:\User.cfg');
ReWrite(OFile, 1);
BlockWrite(OFile, Options, SizeOf(Options));
CloseFile(OFile);
End;
(온라인 상태라서^^)
// 읽는 것은
Procedure ..........;
Var
OFile : File;
Begin
Assign(OFile, 'C:\User.cfg');
Reset(OFile, 1);
BlockRead(OFile, Options, SizeOf(Options));
CloseFile(OFile);
End;
지금 제 PC를 누군가 망가트려 놔서..
겨우 통신만 하는 상황이라서..
자세한 답변을 못해드려서 죄송합니다..
다음 질문 부터는 자세하게 설명하세여^^
From 류..
|