문제
해당 파일의 존재 여부를 확인하기 위해 파일 경로가 포함된 문자열을 테스트하고 싶습니다(예: -e
Perl에서 테스트하거나 os.path.exists()
Python) C#에서.
해결책
사용:
File.Exists(path)
MSDN: http://msdn.microsoft.com/en-us/library/system.io.file.exists.aspx
편집하다:System.IO에서
제휴하지 않습니다 StackOverflow