VB.NET - Streamwriter/Streamreader help
I had actually forgot to turn the timer on... Thanks! But it didn't help. So I used the new code you provided which worked but does make the .txt file all messed up. Is there any way to replace all the text in that .txt file so when the new text from the textbox comes will not just be added onto what's already there. Because when it's imported later on it will be a lot of duplicated text in the file. Is this possible?
Oh yea, sorry I added in the append not really thinking
Using sw As StreamWriter = New StreamWriter("D:\testname.txt", true)
to
Using sw As StreamWriter = New StreamWriter("D:\testname.txt")
should do the trick.
As a note, if you ever get stuck with how to use something looking at C# examples can actually help. While the syntax might be different, the function calls are pretty much the same (with that said VB examples are usually on MSDN anyways)
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now