I have loaded my file into my program using an inputStreamReader like so:
try{
input = new InputStreamReader (new FileInputStream (path1), "UTF-16");
}
catch (IOException e)
{
System.out.println("Error");
}
This takes the file and converts it to UNICODE. If this is not the right method then if you could let me know thanks, but I think it is.
I then need to convert the file in to Hex. After looking around I can only find how to convert a String into Hex, is there anyway to covnvert the entire contents of the file into Hex?
If you need anymore information then let me know, but I think I have covered all the bases.
Thanks in advance for our help.
Cookie_272


Ask A New Question
Reply





MultiQuote







|