×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2010
    Posts
    22

    Reading text files, J2ME

    Hi all

    I am reading a text file from my device memory card line by line. How can I display the read text on the device screen using an Alert INFO message? Please can anyone help me with some example code??

  2. #2
    Registered User
    Join Date
    Oct 2009
    Location
    Noida
    Posts
    941

    Re: Reading text files, J2ME

    Create a text box on a Form and then keep on adding the text read from the fileconnection to this form -- read the File in soome background thread.
    Doing it will Alerts will be blocking and not of much use.
    Thanks,
    Ekta

  3. #3
    Registered User
    Join Date
    May 2010
    Posts
    22

    Re: Reading text files, J2ME

    Thanks for the advice ekta. I now have another problem. I use a visual Midlet to for my user interface. I have no problem writing the users input to a text file on a Nokia 5800's memory card. But since i've start to try and read the same text file back into my app, I keep getting the following error at startup of the app: DOM org.w3c.dom.domexception, not a child of this node and then the app closes itself. And then at other times the app goes through to start. Do you have any adivce on what is causing this error and how I can solve the problem??? Please its urgent.

Similar Threads

  1. Reading text from a text file in j2me
    By baaluaanand in forum Mobile Java General
    Replies: 4
    Last Post: 2010-05-20, 03:13
  2. Reading files with j2me
    By chia_84 in forum Mobile Java General
    Replies: 5
    Last Post: 2008-11-21, 23:09
  3. problem ith reading & writing text-files
    By szallah in forum Symbian
    Replies: 2
    Last Post: 2008-05-26, 00:33
  4. J2ME Reading and Writing Files.
    By underoath_nz in forum Mobile Java General
    Replies: 3
    Last Post: 2007-05-02, 10:57
  5. Reading of a text file in J2ME
    By Sebastiano in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-04-23, 04:28

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×