java2022. 5. 14. 18:04

 

		
        String path = "C:\\Users\\Lee\\eclipse-workspace\\TestApplication\\output.txt";
        
        File file = new File(path);
		PrintStream ps = new PrintStream(new FileOutputStream(file));
        
		System.setOut(ps);

 

출처 : https://nabiro.tistory.com/252

Posted by easy16