import java.io.*;
...
File f = new File( "c:\\new_name.txt" );
if ( f.exists() ) {
/* -- here can be override question */
f.delete();
}
boolean b = new File( "c:\\old_name.txt" ).renameTo( f );
Microsoft AX 2012, X++, C#, SQL server, SSRS, Java, JavaFX, Oracle, PL/SQL, Delphi - codes examples, step-by-step tutorials, experiences.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment