摘要:
代码如下,不太规范,仅作学习用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 阅读全文
摘要:
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 阅读全文