C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[72636] Re:폴더와 파일 존재여부 확인
candalgo, 광양 [kongbw] 5328 읽음    2015-05-11 13:44
DirectoryExists

FileExists

라는 함수들이 있습니다.

헬프를 찾아보시면 좀 더 자세한 설명이 있을겁니다.   (^^)


DirectoryExists(const System::UnicodeString Directory, bool FollowLink = true);

Determines whether a specified directory exists.

Call DirectoryExists to determine whether the directory specified by the Directory parameter exists. If the directory exists, the function returns True. If the directory does not exist, the function returns False.

If a full path name is entered, DirectoryExists searches for the directory along the designated path. Otherwise, the Directory parameter is interpreted as a relative path name from the current directory.

------------------------------------------------------------------

FileExists(const System::UnicodeString FileName, bool FollowLink = true);

Tests whether a specified file exists.

FileExists returns True if the file specified by FileName exists. If the file does not exist, FileExists returns False.



앱돌이 님이 쓰신 글 :
: 안녕하세요 왕초보 질문좀 받아주세요 ㅜ.ㅠ
:
: c++빌더를 사용하고 있습니다.
:
: 파일과 폴더를 생성하여 저장하는걸 하고 있는대요
:
: 혹시 폴더와 파일의 존재여부에 따라 없을시 폴더를 생성을 하고
:
: 존재하면 그 디렉토리에 들어가 파일을 생성하려하는대요
:
: 존재 여부를 확인할수 있는 방법이 있을까요?
:
: 혹시 확인할 수 있는 객체가 존재하면 클래스와 객체 설명좀 부탁드리겠습니다.

+ -

관련 글 리스트
72635 폴더와 파일 존재여부 확인 앱돌이 3669 2015/05/11
72636     Re:폴더와 파일 존재여부 확인 candalgo, 광양 5328 2015/05/11
72637         Re:Re:폴더와 파일 존재여부 확인 앱돌이 3819 2015/05/11
72644             Re:Re:Re:폴더와 파일 존재여부 확인 정성훈.해미 6303 2015/05/11
72645                 Re:Re:Re:Re:폴더와 파일 존재여부 확인 앱돌이 4239 2015/05/12
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.