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

    Join Date
    Feb 2007
    Somewhere in the vicinity of Betelgeuse
    Rep Power

    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
    Rep Power
    What code do you have? What errors are you getting?
    Doug G
    I've never been able to appreciate the sublime arrogance of folks who feel they were put on earth just to save other folks from themselves .." - Donald Hamilton

IMN logo majestic logo threadwatch logo seochat tools logo