- CVI 정보나눔(www.cvi.kr)
- 스터디
- 질문답변
질문,답변
글 수 1,629
CVI초보입니다. 또 도움을 요청드립니다.
아래와 같이 FileSelectPopup을 이용해서 파일을 연경우
open한 파일(logfile)의 확장자를 아는 방법이 없을가요?
status = FileSelectPopup ("",
"*.txt;*.log;*.isf", //default file spec
"*.txt;*.log;*.isf", //file tpye list
"Log File Open", VAL_SELECT_BUTTON,
0, //restrictDirectory
0, //restrictExtension
1, //allowCance
0, //allowMakeDirectory
logfile);
아래와 같이 FileSelectPopup을 이용해서 파일을 연경우
open한 파일(logfile)의 확장자를 아는 방법이 없을가요?
status = FileSelectPopup ("",
"*.txt;*.log;*.isf", //default file spec
"*.txt;*.log;*.isf", //file tpye list
"Log File Open", VAL_SELECT_BUTTON,
0, //restrictDirectory
0, //restrictExtension
1, //allowCance
0, //allowMakeDirectory
logfile);
logfile 문자열을 뒤에서부터 검사하여 '.' 이후의 문자열을 뽑아내면 그 파일의 확장자가 되겠네요.
그럼, 즐거운 날 되시기를...