Ok, As it turns out, it depends on if you are written to a new file, or appending data to an existing file..... writing data to a new file will be like this:
Dim tw As System.IO.TextWriter
tw = System.IO.File.CreateText("C:\MyTextFile.txt")
tw.WriteLine(text1.text) 'assuming the name of your textbox is text1
However, If you are writing to an existing file....
Dim sw As IO.TextWriter
sw = IO.File.AppendText("C:\MyTextFile.txt")
So, You have to know if you are writing to an existing file or not, to determine how you will go about writing to it. If You want to do either, regardless if the file exists or not, you could do an if statement with File.Exists("c:\MyTextFile.txt"), which should return true or false depending on if the file exists or not.
Problem with that code is it over writes the current data and text file. Your method works well with the button but is it possible to make it work in a timer without scrolling the same data over and over again? My goal with this is to have the textbox write to a textfile without user intervention.
Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...