Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User namserious's Avatar
    Join Date
    Mar 2010
    Posts
    3
    Hi everyone, I have a problem with reading line by line an Unicode file. This is my MIDlet, it is written on Java SDK 3.0
    http://www.mediafire.com/?wwju2yetwow
    it runs OK, but I think It is not perfect. Can anyone tell me to fix it. thank you very much.

  2. #2
    Nokia Developer Moderator r2j7's Avatar
    Join Date
    Aug 2007
    Posts
    1,595
    Hello namserious,

    and welcome to Forum Nokia Discussion Boards!

    I have a problem with reading line by line an Unicode file. .. it runs OK, but I think It is not perfect.
    Could you provide more information on what is the problem about, i.e. is it specifically related to Nokia devices, tools or possibly something else?

    Regards,
    r2j7

  3. #3
    Registered User namserious's Avatar
    Join Date
    Mar 2010
    Posts
    3
    Quote Originally Posted by r2j7 View Post
    Hello namserious,

    and welcome to Forum Nokia Discussion Boards!



    Could you provide more information on what is the problem about, i.e. is it specifically related to Nokia devices, tools or possibly something else?

    Regards,
    r2j7
    Oh, when I use this code for reading index file of a dictionary program it displays 'ArrayIndexOutOfBounds'. My index file is formatted as one letter in one line. Eg:
    a
    b
    c
    ...
    x
    y
    z

  4. #4
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    Try taking help from FN wiki code example for the same at - http://wiki.forum.nokia.com/index.ph...iles_in_JavaME

    thanks,
    ~Amitabh

  5. #5
    Registered User namserious's Avatar
    Join Date
    Mar 2010
    Posts
    3
    Quote Originally Posted by im2amit View Post
    Try taking help from FN wiki code example for the same at - http://wiki.forum.nokia.com/index.ph...iles_in_JavaME

    thanks,
    ~Amitabh
    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:
    Hello world
    Goodnight
    Goodbyte
    when I use my program it outputs:
    Code:
    Hello world
    
    process completely
    But I want it display only:
    Code:
    Hello world
    process completely
    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); ).
    Last edited by namserious; 2010-05-31 at 08:32.

Similar Threads

  1. Replies: 5
    Last Post: 2009-06-15, 09:20
  2. Problem with GCCE build in Carbide.vs
    By raffaelbechara in forum Symbian C++
    Replies: 6
    Last Post: 2008-10-20, 16:06
  3. socket read hangs until socket is closed
    By camroe in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-07-21, 09:44
  4. Replies: 1
    Last Post: 2005-05-26, 14:22
  5. Replies: 0
    Last Post: 2002-06-10, 12:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved