
C# 파일명, 파일경로 호출 FileInfo 함수를 통해서 특정 경로에 위치한 파일의 파일명을 호출할 수 있으며, 파일명과 경로를 분리해서 호출도 가능하다. 파일명 호출 예제 string filePath = @"C:\Users\mhk\Desktop\티스토리_개발.pptx"; // 파일경로 System.IO.FileInfo FI = new System.IO.FileInfo(filePath); // 경로의 파일정보 호출 string fileName = FI.Name; //
프로그래밍/윈도우개발
2023. 2. 9. 08:24
공지사항