摘要:
Java 流在处理上分为字符流和字节流。字符流处理的单元为 2 个字节的Unicode字符,分别操作字符、字符数组或字符串,而字节流处理单元为 1 个字节,操作字节和字节数组。Java 内用 Unicode 编码存储字符,字符流处理类负责将外部的其他编码的字符流和java内 Unicode 字符流之... 阅读全文
posted @ 2014-08-26 21:01
marco_tan
阅读(178)
评论(0)
推荐(0)
摘要:
【案例1】创建一个新文件1234567891011importjava.io.*;classhello{publicstaticvoidmain(String[] args) {File f=newFile("D:\\hello.txt");try{f.createNewFile();}catch(... 阅读全文
posted @ 2014-08-26 09:10
marco_tan
阅读(318)
评论(0)
推荐(0)

浙公网安备 33010602011771号