문자열(string) 편집 예제

1. 파일
//전체 파일명 : test.gif
fullName = dir.Substring(dir.LastIndexOf('\\') + 1);
//순수 파일명 : test
name = fullName.Substring(0, fullName.LastIndexOf('.'));
//확장자 : .gif
ext = fullName.Substring(fullName.LastIndexOf('.'));
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Previous
Next Post »