Android Question Writing data to a file

Discussion in 'Android Questions' started by brodmuehler, Apr 27, 2015.

  1. brodmuehler

    brodmuehler Member Licensed User

    I want to write data to a file every second. It should also be possible to interrupt the data flow and then restart it again without loosing the existing data, meaning that new data will just be added to the existing file.
    Could someone perhaps advise what the best concept would be to do this?
    Thanks a lot. Kind regards Rene
  2. eurojam

    eurojam Well-Known Member Licensed User

    brodmuehler likes this.
  3. brodmuehler

    brodmuehler Member Licensed User

    Great. Will give it a try but seems to be what I need. Thanks a lot. René
  4. Erel

    Erel Administrator Staff Member Licensed User

    Make sure to call TextWriter.Flush if it is important that data will not be lost in case of a crash.
    brodmuehler and eurojam like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice