1. Check out our app, Forums for Android! Download and leave feedback here!

store text file in sd card

Discussion in 'Application Development' started by bbjdev, May 5, 2010.

  1. bbjdev

    bbjdev New Member
    Thread Starter
    5

    May 5, 2010
    1
    0
    5
    Hi,

    I need input about how to store a text file in the sd card. My idea is to write some contents on a text file and allow user to select a path to store the file in the device. Please let me know what are the steps I need to follow the same. I am able to write the contents on a file and the file is now under data in eclipse(DDMS).

    Thanks in advance.
    BBJDev
     

    Advertisement

  2. tp_technologies

    tp_technologies Well-Known Member
    16

    Apr 26, 2010
    65
    5
    16
    Canada
    I would suggest checking out File objects in Java. By using a File object with the desired path and a PrintWriter you could write to any location.
     

Share This Page

Loading...