#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2007
    Location
    Somewhere in the vicinity of Betelgeuse
    Posts
    121
    Rep Power
    9

    How to append text to a file with a delimiting value


    Sorry if this is a very noob question...I seldom do VB.NET and mess with files even less as I do more embedded programming in C.

    I have a config file "someconfig.conf" with settings like:

    setting1: setting1
    setting2: setting2
    setting3: setting3
    ...

    What I'm trying to do is change one of those settings like "setting2: anothersetting" using the setting name as a delimiter and appending the text after it. I found out how to read them in a similar way, but the StreamReader and StreamWriter seem to be quite different. Any ideas?
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,449
    Rep Power
    4539
    What code do you have? What errors are you getting?
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester

IMN logo majestic logo threadwatch logo seochat tools logo