摘要: 1 package hjw; 2 import java.io.ByteArrayInputStream; 3 import java.io.ByteArrayOutputStream; 4 import java.io.IOException; 5 //import org.omg.CORBA_2_3.portable.OutputStream; 6 public class dm { 7 public static void main(String[] args) throws Exception { 8 String str="HELLOWORLD"; 9 ... 阅读全文
posted @ 2012-03-20 21:30 谈笑风生膜法师 阅读(2171) 评论(0) 推荐(0)
摘要: 1 import java.io.File; 2 import java.io.InputStream; 3 import java.io.FileInputStream; 4 //import org.omg.CORBA_2_3.portable.OutputStream; 5 public class dm { 6 public static void main(String[] args) throws Exception { 7 File f=new File("d:"+File.separator+"te.txt"); 8 InputStre. 阅读全文
posted @ 2012-03-20 20:45 谈笑风生膜法师 阅读(290) 评论(0) 推荐(0)
摘要: 1 package hjw; 2 import java.io.File; 3 import java.io.IOException; 4 public class dm { 5 public static void main(String[] args) { 6 File f=new File("d:"+File.separator); 7 print(f); 8 } 9 public static void print(File file){//递归调用此方法10 if(file!=null){//增加一个检查机制1... 阅读全文
posted @ 2012-03-20 20:03 谈笑风生膜法师 阅读(281) 评论(0) 推荐(0)
摘要: 1 package hjw; 2 import java.io.File; 3 import java.io.IOException; 4 public class dm { 5 public static void main(String[] args) { 6 String path="d:"+File.separator+"te.txt";//拼凑出可以适应操作系统的文件路径 7 File f=new File(path); 8 try{ 9 f.createNewFile();10 }ca... 阅读全文
posted @ 2012-03-20 19:23 谈笑风生膜法师 阅读(338) 评论(0) 推荐(0)