Try this:
BufferedReader br = new BufferedReader(new FileReader(InputFile));
instead of:
FileInputStream fstream = new FileInputStream(InputFile); // Get the object of DataInputStream
...
Type: Posts; User: aussiemcgr
Try this:
BufferedReader br = new BufferedReader(new FileReader(InputFile));
instead of:
FileInputStream fstream = new FileInputStream(InputFile); // Get the object of DataInputStream
...
The character is a Unicode Byte Order mark (BOM). It is used to indicate the byte order of a text file.
If you want information about it, I found this supposable fix: comp.lang.java.programmer |...
Do something for us.
After you get the String, do the String.charAt(0) method, cast it as an int, and print out the result.That should give us an idea of its ASCII values and then we can use the...