|
착한아이 님이 쓰신 글 :
: sfile = "F:\ex.txt";
: if (is_file(sfile) {
: Memo1->Lines->LoadFromFile(sfile);
: }
:
: is_file 같은 built-in 함수가 있을까요.. 없으면 어떻게 구현하면 좋을까요..
있습니다. :-)
extern PACKAGE bool __fastcall FileExists(const AnsiString FileName);
사용하시기 전에 "SysUtils.hpp"를 포함시켜 주세요.
도움말에서 "file management routines"을 찾아보시면 파일 처리 관리 함수들 목록이 나옵니다.
|