📄 read.java
字号:
/*
* Read.java
*
* Created on 2007年5月23日, 下午6:09
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package SIPMain;
import SIPRead.*;
import java.util.*;
import java.io.*;
import javax.sip.header.*;
import javax.sip.*;
/**
*
* @author Administrator
*/
public class Read {
/** Creates a new instance of Read */
public Read() {
}
public static void main(String [] args){
File file = new File("cc");
Readrow rr = new Readrow(file);
String r1 = rr.Next();
String r2 = null;
do{
try {
byte [] str=r1.getBytes("ISO8859-1");
r2 = new String(str,"UTF-16");
}catch(Exception e){
e.printStackTrace();
}
System.out.println(r1);
r1 =rr.Next();
}while(!r1.equals("!q2w378$"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -