//参数(文本文件)的读写,by chillming
import java.io.*;
public class IniFile{
private String FileName = "";
public IniFile(String fn){
FileName = fn;
}
//返回参数的值
public String ReadPara(String Para,String PV){
String PName = "";
String PValue = PV;
String LineStr = "";
int pos = 0;
try{
BufferedReader RFile = new BufferedReader(new FileReader(FileName));
while(true){
try{
LineStr = RFile.readLine();
pos = LineStr.indexOf("=");
PName = LineStr.substring(0,pos).trim();
if(PNa...[ 查看全文 ]