[Java] uses RenameTo to implement mobile files

xiaoxiao2021-03-06  46

Today, I found that using rnutime.exce to move files, it is better to use File's RenameTo, don't pay attention to it when there is a file in the mobile target, it will not be performed.

Import java.io. *;

Public class movefile {public static void main (string [] args) throws oews oException {file f = new file ("d: // myhomework ////////////////////////////////////" = 0; i

转载请注明原文地址:https://www.9cbs.com/read-71543.html

New Post(0)