[C#] Path, Directory 함수
#독개#
string path = @"C:\Users\JJin\Desktop\test.png"; Console.WriteLine(Path.GetFileName(path)); //출력: test.png Console.WriteLine(Path.GetFileNameWithoutExtension(path)); //출력: test Console.WriteLine(Path.GetDirectoryName(path)); //출력: C:\Users\JJin\Desktop Console.WriteLine(Path.GetExtension(path)); //출력: .png Console.WriteLine(Path.GetTempPath()); //출력: C:\Users\JJin\AppData\Local\Temp\ //파일크기0인 임시..