I'm reading an exported Windows 2000 registry file using the following:
Reader r = new InputStreamReader(new FileInputStream(c:\\ImageBuild.txt"
, "UTF16"
;
BufferedReader br = new BufferedReader(r);
etc, etc.
The Stacktrace gives a NullPointerException in the main thread, but not much other than that.
Unfortunately I need this to work on Java 1.2.x and apparently it doesn't like the Reader line. Can anyone tell me how to do this with Java 1.2? Is that possible?
I guess my other option is using JNI, but I have no clue about that yet. Not sure what it would take to simply read this one key in the registry.
Help is appreciated! Thanks.
James
Reader r = new InputStreamReader(new FileInputStream(c:\\ImageBuild.txt"
BufferedReader br = new BufferedReader(r);
etc, etc.
The Stacktrace gives a NullPointerException in the main thread, but not much other than that.
Unfortunately I need this to work on Java 1.2.x and apparently it doesn't like the Reader line. Can anyone tell me how to do this with Java 1.2? Is that possible?
I guess my other option is using JNI, but I have no clue about that yet. Not sure what it would take to simply read this one key in the registry.
Help is appreciated! Thanks.
James