Microsoft Dynamics AX/AX 2012

텍스트 파일 문자열 바꾸기

Isaac Lee 2017. 12. 23. 06:12

텍스트 파일을 읽어서 지정 문자열을 치환하는 소스입니다.


str file = @'파일명';

TextBuffer tb = new TextBuffer();

tb.fromFile(file);

tb.replace("대상 문자열", "치환 문자열");

tb.toFile(file);



Happy Daxing;