public class Txt extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
path |
static String |
pdfPath |
| Constructor and Description |
|---|
Txt() |
| Modifier and Type | Method and Description |
|---|---|
static String |
creatPdfFile(String name) |
static String |
creatSqlFile(String name)
创建文件
|
static String |
creatTxtFile(String name,
String type,
String pathSelf)
创建文件
|
String |
formatStr(String str,
int length) |
static void |
main(String[] args) |
static boolean |
writeTxtFile(String newStr)
写文件
|
public static String creatSqlFile(String name) throws IOException
IOExceptionpublic static String creatTxtFile(String name, String type, String pathSelf) throws IOException
IOExceptionpublic static String creatPdfFile(String name) throws IOException
IOExceptionpublic static boolean writeTxtFile(String newStr) throws IOException
newStr - 新内容IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2017. All rights reserved.