1. Download our Official Android App: Forums for Android!

writing to and reading from a file simultaneous

Discussion in 'Android Apps & Games' started by eyalm_nm, Oct 27, 2010.

  1. eyalm_nm

    eyalm_nm Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    11
    Joined:
    Feb 5, 2010

    Feb 5, 2010
    11
    0
    15
    Hi,
    I'm trying to read from a file while it still opened for witing.
    How it can be done?
    Thanks,
    Eyal.
     

    Advertisement

  2. sitlet

    Rank:
    None
    Points:
    213
    Posts:
    5,867
    Joined:
    Apr 11, 2010

    Apr 11, 2010
    5,867
    633
    213
    It cant with a micro sd card. It only goes one way at a time.

    And you need to explain yourself more. What exactly are you trying to do? Is the phone connected to the PC or are you trying to do this on the phone? Why do you need to read and write at the same time?
     
  3. jgreetham

    jgreetham Well-Known Member
    Rank:
    None
    Points:
    58
    Posts:
    202
    Joined:
    May 3, 2010

    May 3, 2010
    202
    19
    58
    There are some PC & Unix applications I know of which will grab a snapshot of a file that is already open for editing. M$ Office applications do this. Don't know about Android.

    I have only ever heard of one application - Intergraph - which allowed multiple users access to the exactly same file. One user would see changes immediately as they were made by another. I think most system designers now see that as a bad approach.

    Some applications like Textpad keep a watch on the original file and will notify you if it has changed and give the option to update your local copy.

    Cheers,
    Jim
     

Share This Page

Loading...