var
F: TextFile;
S: string;
begin
if OpenDialog1.Execute then { Display Open dialog box }
begin
AssignFile(F, OpenDialog1.FileName); { File selected in dialog }
Reset(F);
Readln(F, S); { Read first line of file }
Edit1.Text := S; { Put string in a TEdit control }
CloseFile(F);
end;
end;
'델파이' 카테고리의 다른 글
ms sql 스크립트로 Agent 작업시 'owner_sid' NULL 값 에러.. 해결 (0) | 2010.02.06 |
---|---|
키보드, 마우스 최종입력 알아내기 (0) | 2009.11.07 |
폼의 OnCloseQuery와 Application.HnadleException(self)사용 (0) | 2009.10.29 |
[델파이팁]파일복사 copy (0) | 2009.10.29 |
[델파이팁] System.ParamStr(0) 은 Application.ExeName과 같다 (0) | 2009.10.29 |