Remove file row

Discussion in 'Questions (Windows Mobile)' started by wahwah, May 8, 2009.

  1. wahwah

    wahwah Member Licensed User

    Good morning world,

    i search and try in vain to re remove complete just a row from a file. :BangHead:

    Please :sign0085:
  2. Erel

    Erel Administrator Staff Member Licensed User

    Is it a text file?
    How large is the file?

    You will need to read the file contents and then save it to a new file or over the existing file without the line.
  3. wahwah

    wahwah Member Licensed User

    :sign0027:, i think there is no alternative.

    Ta for the answer Erel.

  4. ExcludeReality

    ExcludeReality Active Member Licensed User


    There is an answer to your problem, but it's a bit tricky.
    You need to write another file with the same value as the original, line by line.
    Then you will need to exclude the line you whant to remove, of course.

    To keep you from doing this yourself, I wrote a small example.
    Feel free to modify it and use it for your application.
  5. wahwah

    wahwah Member Licensed User

    :sign0162: ER, You'r the the coder, :sign0098:

  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