摘要: 代码如下,不太规范,仅作学习用import java.io.*;public class CharSetTest {public static void main(String[] args) throws IOException {// TODO Auto-generated method stubInputStreamReader isr = new InputStreamReader(new FileInputStream("F:\\test\\in.txt"),"GBK");//读入格式必须正确BufferedReader bfr = new B 阅读全文
posted @ 2013-11-20 22:26 剑握在手 阅读(503) 评论(0) 推荐(0) 编辑
摘要: importjava.io.File;importjavax.swing.filechooser.FileSystemView;publicclassByteTest{publicstaticvoidmain(String[]args){FileSystemViewsys=FileSystemView.getFileSystemView();File[]files=File.listRoots();for(inti=0;i<files.length;i++){System.out.println(files[i]+"--"+sys.getSystemTypeDescr 阅读全文
posted @ 2013-11-20 13:56 剑握在手 阅读(2088) 评论(0) 推荐(0) 编辑
返回顶部↑