File1 유용한 File 접근 c#에서는 편리하게 파일에 접근하는 방법을 제공합니다. 이 방법은 MONO를 사용해서 linux에서도 동일한 결과를 얻어 줍니다. 현재 디렉터리 System.IO.Directory.GetCurrentDirectory() 파일 존재 여부 if(File.Exists(this.scene_file) == true){...} 경로와 경로의 합성 string db_dir = Path.Combine(System.IO.Directory.GetCurrentDirectory(),"DB"); 파일명. 확장자 추출 string filepath = @"D:\다운로드\POP\Survive You.mp3"; string file_fullname = System.IO.Path.GetFileName(filepath); // "Surv.. 2021. 8. 9. 이전 1 다음