Results 1 to 2 of 2

Thread: j2me write file

  1. #1
    Ashish_jain's Avatar
    Ashish_jain is offline Member
    Join Date
    Jun 2011
    Posts
    32
    Rep Power
    0

    Default j2me write file

    how can read and write text file.
    i using this code -

    try
    {
    String connectionString = "file:////prova.txt";
    FileConnection filecon = (FileConnection) Connector.open(connectionString, Connector.WRITE);
    filecon.close();
    } catch (Exception e) {
    }

    but it give Warning:
    To avoid potential deadlock, operations that may block, such as
    networking, should be performed in a different thread than the
    commandAction() handler.
    Last edited by Ashish_jain; 08-16-2011 at 02:37 PM.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,251
    Rep Power
    19

Similar Threads

  1. Replies: 6
    Last Post: 12-01-2010, 05:31 AM
  2. Replies: 8
    Last Post: 05-12-2010, 07:19 PM
  3. Reading file zip in j2me
    By duoichon in forum CLDC and MIDP
    Replies: 3
    Last Post: 03-02-2010, 10:01 AM
  4. Replies: 5
    Last Post: 02-05-2009, 10:28 AM
  5. Run J2ME application using existing jar file
    By chale in forum CLDC and MIDP
    Replies: 0
    Last Post: 08-25-2008, 02:11 PM

Tags for this Thread

Posting Permissions

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