Search:

Type: Posts; User: GregBrannon

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    952

    Re: Saving new value to file

    That's trivial. Read the line, change the data in the line, write the line back to the file. No appending or any other tricks are required. Try printing (to the screen) the line as it is read from...
  2. Replies
    7
    Views
    952

    Re: Saving new value to file

    And there's only one line of data in the whole file?
  3. Replies
    7
    Views
    952

    Re: Saving new value to file

    It occurred to me after reading Norm's message that you may not have explained the problem thoroughly. If you want to intersperse new data with old data in the lines of the file, like:

    OLD
    new...
  4. Replies
    7
    Views
    952

    Re: Saving new value to file

    Investigate (search) how to open the file or the mechanism that writes to it by appending data rather than writing to it replacing the existing data.
Results 1 to 4 of 4