public class TxtUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
path |
static String |
zippath |
| Constructor and Description |
|---|
TxtUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
creatTxtFile(String name) |
static void |
deleteZipFile(String name) |
static void |
main(String[] args) |
static boolean |
writeTxtFile(String newStr,
String name)
写文件
|
public static String creatTxtFile(String name) throws IOException
IOExceptionpublic static boolean writeTxtFile(String newStr, String name) throws IOException
newStr - 新内容IOExceptionpublic static void deleteZipFile(String name) throws IOException
IOExceptionpublic static void main(String[] args)
Copyright © 2017. All rights reserved.