public abstract class IOUtils extends Object
| Constructor and Description |
|---|
IOUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(File sourceFile,
File targetFile)
复制文件
|
static void |
createFile(File newFile,
String text)
创建文件
|
public static void copy(File sourceFile, File targetFile) throws IOException
sourceFile - 源文件targetFile - 目标文件IOException - IO异常public static void createFile(File newFile, String text) throws IOException
newFile - 文件text - 文件内容IOException - IO异常Copyright © 2021–2022 EasyJ????. All rights reserved.