Directoy검색 썸네일형 리스트형 Directoy내 특정 파일 검색 루프를 두번 돌릴 필요 없이 가능하다. C#의 장점이라고 해야하나?ㅎㅎㅎㅎ 원하는 File의 Path를 받아오는 방법이다. using System.IO //Directoy 클레스를 사용하기 위함이다. private string []ImageFilePath; //찾고자 하는 파일들의 경로를 받아온다. 전역(멤버)로 선언. string []SerachFiles = Directoy.GetFiles(FilePath ,"*.jpg"); //FilePath 경로의 디렉토리에 "*.jpg" 만 검사하여 가지고 온다. ImageFilePath = new string[SearchFiles.Count()]; //SearchFiles의 배열의 크기만큼 메모리 할당. int i; foreach(string files in S.. 더보기 이전 1 다음