Hi,

I will like to know how to convert a String value into ASCII value?
Right now I'm trying to read JSP file, and string tokenise words within tags(e.g.
<tr>), and then write these words into a text file. The scope of the program
is to translate words in the JSP file into chinese.
Below is my program, which I think the errors lies on the coding part. I
need to implement hashtable into it.
Please reply as soon as possible, as this is urgent.

ArrayList list=new ArrayList();
try
{
//To read in the jsp file information
FileReader file=new FileReader("C:\\petra\\AddOu.jsp");
BufferedReader bReader=new BufferedReader(file);
FileWriter writeFile=new FileWriter("C:\\petra\\English.text");
BufferedWriter bWriter=new BufferedWriter(writeFile);
String line;
String s="";
while((line=bReader.readLine())!=null)
{
list.add(line);
}
for(int i = 0; i<list.size(); i++)
{
String ln=(String)list.get(i);
//To String tokenize each line, until it find >
StringTokenizer sToken=new StringTokenizer(ln,"<");
while(sToken.hasMoreTokens())
{
Byte byteString=new Byte(sToken.nextToken());
if(byteString!=null)
{
String a=new String(byteString.toString());
bWriter.write(a);
}
}
}
catch(IOException e)
{
System.out.println("catch io exception");
}
catch(NumberFormatException e)
{
System.out.println("catch number format exception");
}