2010-10-07 8 views

Répondre

0
public class RedirectTest { 
    public static void main(String[] args) throws IOException { 
    PrintStream ps = new PrintStream(new BufferedOutputStream(new FileOutputStream(new File("output.txt"))), true); 
    System.setOut(ps); 
    System.out.println("test"); 
    } 
} 
Questions connexes