deleteOld 用update 安装的eclipse 插件 ,提取出来
来源:互联网 发布:多线程和并发编程 编辑:程序博客网 时间:2024/05/20 06:22
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
public class FileUtil {
static BufferedWriter bw = null;
static {
try {
bw = new BufferedWriter(new FileWriter(new File("c://out.txt"),
true));
} catch (IOException e) {
e.printStackTrace();
}
}
public static void write(String appendContent) {
try {
bw.write(appendContent);
bw.write(System.getProperty("line.separator"));
bw.flush();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void read(File parents) {
File[] files = parents.listFiles();
for (File f : files) {
if (f.isFile()) {
write(f.getAbsolutePath());
} else {
read(f);
write(f.getAbsolutePath());
}
}
}
public static void deleFiles() {
BufferedReader br = null;
try {
br = new BufferedReader(new FileReader(new File("c://out.txt")));
String line = br.readLine();
File f = null;
while (line != null) {
f = new File(line);
System.out.println(f.getAbsolutePath());
f.delete();
line = br.readLine();
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
public static void main(String[] arga) {
File f = new File(
"E://java//IDE//eclipse3.5//eclipse-SDK-3.5-win32//eclipse");
// FileUtil.read(f);
FileUtil.deleFiles();
}
}
- deleteOld 用update 安装的eclipse 插件 ,提取出来
- eclipse 中,自已安装的插件都不出来了
- Eclipse 安装插件显示不出来的解决办法
- eclipse插件的安装
- Eclipse插件的安装
- Eclipse的插件安装
- eclipse插件的安装
- Eclipse插件的安装
- Eclipse 插件的安装
- Eclipse插件的安装
- Eclipse插件的安装
- eclipse插件的安装
- eclipse插件的安装
- 把变化的提取出来!
- 提取出来的工具类
- 一些有用的Eclipse插件的下载或者update地址
- eclipse常用插件(Update sites)
- 用正则表达式把列里面的数字提取出来
- study note of "Zend PHP 5 Certification Study "--array
- 堆栈
- ext 学习(一)
- 郁闷的Funambol
- Google 的 2009: Web 的下一个十年
- deleteOld 用update 安装的eclipse 插件 ,提取出来
- 学习DirectX中的种种
- Internet Explorer Script Error
- 堆、栈及静态数据区详解
- visual studio 2008使用手册
- 数据结构课程设计题目
- study note of "Zend PHP 5 Certification Study "--OOP
- 用分形法画Koch Snowflake 曲线
- fedora 下常用软件——转