ReadToFile(Application.StartupPath + @"\Answer\Nomal");   호출

public void ReadToFile(string FullFilePath)
{
    System.IO.DirectoryInfo di = new System.IO.DirectoryInfo(FullFilePath);   // 파일 위치
    string File = string.Empty;
    int FileCount = 0;
    foreach (System.IO.FileInfo f in di.GetFiles())
    {
        File += FullFilePath + @"\" + f.Name;
        if (di.GetFiles().Count() - 1 > FileCount)
        {
            File += "^";
        }
        FileCount++;
    }
    string[] FilePath = File.Split('^');
}

'프로그래밍 > C# ' 카테고리의 다른 글

DataSet -> XML  (0) 2014.05.08
XML -> DataSet  (0) 2014.05.08
델리게이트를 이용 및 TextBox 한 곳에서 처리 하기  (0) 2013.09.06
DataGridView Binding 등등..  (0) 2013.08.27
DataTable 만들기  (0) 2013.08.27
Posted by 천사주니
,