It is used for reading a file that is saved as UTF-8. But I saved my file as Unicode, you can see my MIDlet. I can describe my problem clearly: if a file includes 3 lines:
Originally Posted by im2amit
when I use my program it outputs:
But I want it display only:
That means in the first output the result include text and a new line, but I only want it display first line "Hello world" without new line like the second output (in this case I used the same way to output string System.out.print(string); ).