import java.io.FileInputStream;
import java.util.Scanner;
public class QueryMaker {
public static void main(String[] args) throws Exception{
Scanner scanner = new Scanner(new FileInputStream("c:\\webex\\query\\query.txt"));
System.out.println("StringBuilder builder = new StringBuilder();");
while(true){
try{
String line = scanner.nextLine();
System.out.println("builder.append(\" "+line+" \");");
}catch(Exception e){
break;
}
}
}
}
'프로그램 > 웹프로그래밍' 카테고리의 다른 글
[게시판] BbsService - 설계 (0) | 2012.02.23 |
---|---|
[게시판] BbsServiceImpl (0) | 2012.02.23 |
JDBC드라이버 이클립스 세팅 / 연결 체크 포인트 (0) | 2012.02.10 |
오라클 설치 및 기본세팅 (0) | 2012.02.10 |
이클립스 톰캣 설정 ~ HelloServlet 찍기 (0) | 2012.02.09 |