/**
* read rd.txt form path :/debian/var/www/pc2/database/rd.txt
*
* @return
*/
public String readRd() {
String res = null;
try {
FileInputStream fin = new FileInputStream("/debian/var/www/pc2/database/rd.txt");
int length = fin.available();
byte[] buffer = new byte[length];
fin.read(buffer);
res = EncodingUtils.getString(buffer, "UTF-8");
fin.close();
} catch (Exception e) {
e.printStackTrace();
}
return res;
}
* read rd.txt form path :/debian/var/www/pc2/database/rd.txt
*
* @return
*/
public String readRd() {
String res = null;
try {
FileInputStream fin = new FileInputStream("/debian/var/www/pc2/database/rd.txt");
int length = fin.available();
byte[] buffer = new byte[length];
fin.read(buffer);
res = EncodingUtils.getString(buffer, "UTF-8");
fin.close();
} catch (Exception e) {
e.printStackTrace();
}
return res;
}