易截截图软件、单文件、免安装、纯绿色、仅160KB

java读写删.text,.xml文件内容

package fileIo;  
 
import  java.io.BufferedReader;  
import  java.io.BufferedWriter;  
import  java.io.File;  
import  java.io.FileReader;  
import  java.io.FileWriter;  
 
 public   class  ReadTextFile   {  
    public  BufferedReader bufread;  
    public  BufferedWriter bufwriter;  
   File writefile;  
   String filepath, filecontent, read;  
   String readStr  =   "" ;  
    // 从文本文件中读取内容   
     public  String readfile(String path)     
      {  
         try    {  
           filepath  =  path;  // 得到文本文件的路径   
            File file  =   new  File(filepath);  
           FileReader fileread  =   new  FileReader(file);  
           bufread  =   new  BufferedReader(fileread);  
             while  ((read  =  bufread.readLine())  !=   null )   {  
               read  =  read + " \r\n " ;              
          


相关文档:

JAVA读取CSV

首先到该http://ostermiller.org/utils/download.html 地址下载com.Ostermiller.util cvs的jar包。
public class CsvFileParser{
private LabeledCSVParser csvParser;//csv解析器,对于第一行的表头信息,自动加载为索引关键字
private int currLineNum = -1;//文件所读到行数
private String[] currLi ......

Java基本数据类型的取值范围

 先看一段代码
public class Hello{
    public static void main(String[] args){
        int i  = 5 ,  j = 2;
        System.out.println(i+j);
      ......

Tomcat java 定时任务

两个tomcat Java定时任务的例子
例一:
本例依据Java自身提供的接口实现,通过监听器(Listener)和定时器(Timer)定时执行某个任务(Task)。
专业的开源工具可参考Quartz:http://www.opensymphony.com/quartz/
MyListener:
import
 java.util.Timer;
import
 javax.servlet.ServletContextEvent;
i ......

java 异常Exception 集


<!--
/* Font Definitions */
@font-face
{font-family:SimSun;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:宋体;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@SimSun&qu ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号