Save data from text boxes to csv

JonathanP

Member
Joined
Nov 7, 2012
Messages
8
Programming Experience
Beginner
Hi,

I have a VB Winform shown below and I would like to save the data in the text boxes to a csv file. Would anyone know how I might code that please.

1.jpg

Thanks Jonathan
 
Use streamwriter to output the text file, something like this:
  Using sw As New System.IO.StreamWriter("OutputFile.csv")
      sw.WriteLine("{0},{1}", txtbox1.Text, txtbox2.Text)
  End Using
 
Back
Top