摘要:        
FileWriter writer = null; String fileName="d://my.txt"; String line="要追加的内容"; try { // 打开一个写文件器,构造函数中的第二个参数true表示以追加形式写文件 ,false 表示覆盖原内容 writer = new     阅读全文
posted @ 2015-06-03 15:31
荣超
阅读(173)
评论(0)
推荐(0)
        
            
        
        
摘要:        
String path="D://my"; File folder=new File(path); if(!folder.exists() && !folder.isDirectory()){ //文件夾不存在時创建文件夾 folder.mkdirs(); } String fileName="D:    阅读全文
posted @ 2015-06-03 15:29
荣超
阅读(783)
评论(0)
推荐(0)
        
            
        
        
摘要:        
URL url = new URL("网关url");//使用post方式,这里不要带参数 HttpURLConnection httpCon = (HttpURLConnection) url.openConnection(); httpCon.setConnectTimeout(5 * 1000    阅读全文
posted @ 2015-06-03 15:28
荣超
阅读(1123)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号