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

 

    摘要: 在单文档和多文档里面可以不写一个代码就能轻松实现。但是在对话框里面好像有点问题,提示要将主框架写成cmainframe,照着做了。splash是能加入了,也能顺利编译。但是没有出现启动画面。怎么回事?请详细解答,不胜感激! ......
 ·如何在sql server ce 下建立索引    »显示摘要«
    摘要: 如题 ......


搞不清JAVA的IO,在替换这样的方本,如何实现在线

a.txt  
   
  a  
  b  
  c  
  d  
   
  想用此文本生成一个包含这样内容的文件.  
  a=a+a  
  b=b+b  
  c=c+c  
  d=d+d  
 

NO.1   作者: leshui

//这个是读文件的代码:  
  <%  
    FileReader     myFileReader=new   FileReader("c:/aaa.txt");  
    BufferedReader   myBufferedReader=new   BufferedReader(myFileReader);  
    String   myString=null;  
    String   resultString=new   String();  
    while((myString=myBufferedReader.readLine())!=null)  
      {     resultString=resultString+myString+"<br>";    
        }  
    out.println(resultString);    
  myFileReader.close();  
  %>  
   
  //这个是写文件的代码:  
   
  <%  
  String   filePath="c:/aaa..txt";  
  filePath=filePath.toString();  
  File   myFilePath=new   File(filePath);  
  FileWriter   resultFile=new   FileWriter(myFilePath);  
  PrintWriter   myFile=new   PrintWriter(resultFile);  
  String   strContent   =   "中文测试测试".toString();  
  myFile.println(strContent);  
  resultFile.close();  
  %>


    摘要: 我使的是document.parent.frames[frarightframe].location.href= 提示“document.parent.frames”为空域,该怎么写呀? ......
» 本期热门文章:

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