string 의 경로명으로
해당 경로의 파일을 가져오는 예제입니다.
System.IO.Directory 가 사용됩니다.
전체 소스
        WATFileList.zip 
        
     
소스 일부
        private void btnRead_Click(object sender, EventArgs e)
        {
            if(System.IO.Directory.Exists(txtPath.Text))
            {
                txtList.Text = "";
                foreach (string s in System.IO.Directory.GetFiles(txtPath.Text))
                {
                    txtList.Text +=s+"\r\n" ;
                }
            }
        }
관련 문서가 검색되었습니다.
	- [2018/02/26] List 에서 고유값 얻기 (4915)
- [2016/09/24] XML 으로 환경설정 저장하기 ( \n,엔터값 포함, NewLine) (10537)
- [2015/03/23] Android Manifest doesn't exists or has incorrect root tag (4454)
- [2014/01/08] if 문에서 여러개 비교할때 (26030) *3
- [2013/06/25] string array to string (스트링 문자열 합치기) (24583)
- [2013/02/01] Windows 에 FTP 서버 구축(FileZilla Server) (8379) *1
- [2013/01/10] 폴더명, 파일명 얻기 ()
- [2011/02/23] C#, Queue 사용하기 (22020)
- [2010/10/06] 파일, 폴더(디렉토리) 구분 ()
- [2010/10/28] ListView 에 ComboBox 붙이기 (22947)

 
	
		 


 
    
 
    
 
     

 2
2