#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
    Stumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,409
    Rep Power
    4538
    What code do you have? What errors are you getting?
    ======
    Doug G
    ======
    It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

IMN logo majestic logo threadwatch logo seochat tools logo