that file looks almost like an INI file - make a couple of changes (stick "=" between the param name & value and give the file a section header "[SectionName]") and you could just use an INI file reader like this one http://www.mentalis.org/soft/class.qpx?id=6 - makes your job a whole lot easier than parsing each line in the file until you get to the line you want.

Or convert it to XML and use the .Net XML classes.

If you do use a streamwriter to write back to the file - remember that you will need to write back the entire contents of the file not just the line you are changing. So for even a small change you will have to read in every line of the file.

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…

Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…