katzmiao Posted April 2, 2003 Posted April 2, 2003 need help with btnChange event in vb.net I hope someone can help with this. I need to include a btnChange event on a form but I have no idea if this should use the streamwriter to ChangeText instead of AppendText or CreateText or not or if I'm supposed to use something else. I also need to find out if the sw.writeline would be changed to changeLine. Of course, no examples in the book to use. Ugh. Thanx in advance. :confused: Quote
*Experts* Volte Posted April 2, 2003 *Experts* Posted April 2, 2003 You'll have to be much more specific in what you're asking.. I can't make heads or tails of your question! What is it you're trying to do, and what is the problem you are having? Quote
katzmiao Posted April 2, 2003 Author Posted April 2, 2003 Okay - I'm working on a form that requires the ability to change data to the original text file. I just have no idea on how to do that. :o So far, we've covered appending a file and creating one but there is nothing to show how to update data. The only things shown in the book for a button event are display and compute. :eek: Quote
*Gurus* divil Posted April 2, 2003 *Gurus* Posted April 2, 2003 You don't "change" things in a text file, as you want to. You have to read it all in, change what you need to then write it out again. Files are not like strings. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Heiko Posted April 2, 2003 Posted April 2, 2003 Can we change the title of this thread? Apparently this is not a Button / Event problem but a File I/O issue. Quote .nerd
katzmiao Posted April 2, 2003 Author Posted April 2, 2003 Gee thanx peeps. Move the freaking post AND change the blasted title so the thread starter can't find it again. Should have known better than to use a forum like this for any assistance. Quote
a_jam_sandwich Posted April 2, 2003 Posted April 2, 2003 Hey we all do our best to help and devote a lot of time to it for nothing but making misleading questions kind of throws us of the scent Rephase exactly what you want and we will help you out Andy Quote Code today gone tomorrow!
*Gurus* divil Posted April 2, 2003 *Gurus* Posted April 2, 2003 How many other threads did you make recently in the Windows Forms forum? Your name is clearly by the thread. Future people searching for help on modifying text files won't find what they're looking for if it's in a thread supposedly about buttons, will they? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
*Experts* jfackler Posted April 2, 2003 *Experts* Posted April 2, 2003 Should have known better than to use a forum like this for any assistance. I certainly hope those of you who contribute, and therefore teach volumes to those of us willing to learn ( appreciating beyond reason the altruistism in your input) will dismiss this mislead statement. Thank god for gurus. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.