×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jan 2011
    Posts
    1

    How to read text file in memory card from MIDlet?

    How to read text file in memory card from MIDlet?

  2. #2
    Regular Contributor
    Join Date
    Nov 2010
    Location
    Egypt,Mansoura
    Posts
    80

    Re: How to read text file in memory card from MIDlet?

    you can use file connection with path to the text file in the memory & with ability to read only

    Code:
    try{
      Fileconnection fonn = (Fileconnection) Connection.open ("file///:E/readme.txt",READ);
    InputStream ip = fonn.inputstream();
    byte[] data;
    ip.read(data);
    string txt = new string(data);
    fonn.close();
    }catch{
    }
    it could be like that sorry iam not at home iam using my phone browser
    i hope it will help u


    Buffon
    Let The Impossible Happen!!!

Similar Threads

  1. Cant read file on memory card
    By david.morgan in forum Symbian
    Replies: 4
    Last Post: 2011-01-07, 09:31
  2. How to read file located in memory card?
    By 113115 in forum Symbian
    Replies: 4
    Last Post: 2009-03-09, 20:30
  3. Reading text file stored in phone memory/memory card
    By devdattac in forum Mobile Java General
    Replies: 6
    Last Post: 2008-09-19, 19:30
  4. can we read file from SD Memory card?
    By sherl0ck in forum Mobile Java General
    Replies: 6
    Last Post: 2006-09-15, 19:44
  5. MEMORY CARD CANT BE READ
    By jinda007 in forum Mobile Java General
    Replies: 0
    Last Post: 2005-12-28, 18:15

Posting Permissions

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