当前位置:首页
开发技术指南» 文章正文
    引言:

 ·得到xml子节点的属性值    »显示摘要«
    摘要: xmldocument doc = new xmldocument(); page page = new system.web.ui.page(); doc.load(page.server.mappath("language.xml")); xmlnode child = doc.selectsinglenode("//"+......
    摘要: 现有一个对话框,想把一个exe文件嵌入到对话框中如何做? 现我是用::shellexecute,再findowwindow,再modifystyle,再setwindowpos 使其看起来就像是一个程序一样.但仍有很大问题.比如切换时. 请问是否有什么办法可以像建立一个子对话框一样可以嵌入的办法呢? ......


为什么"\n"不会换行

我在写入文件的时候用了"\n",但是它换不了行。  
  public   static   void   generatefile(String   from,String   subject,String   date,String   content,int   num)throws   Exception{  
      OutputStream   out1=new   FileOutputStream("message"+num+".txt");  
      out1.close();  
      FileWriter   fw   =   new   FileWriter("message"+num+".txt");    
      PrintWriter   out=new   PrintWriter(fw);  
      out.write(from+"\n"+subject+"\n"+date+"\n"+content);  
      out.println();    
                        out.flush();    
                        out.close();  
                     
                        }  
  这个from和subject之间是连着的换不了行,subject和date直接也是。  
   
 

NO.1   作者: interhanchi

试一下\r\n  
 


    摘要: 怎么校验身份证的合法性? 怎么校验军官证的合法性? 怎么校验护照的合法性? ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE