J JonathanP Member Joined Nov 7, 2012 Messages 8 Programming Experience Beginner Nov 7, 2012 #1 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. Thanks Jonathan
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. Thanks Jonathan
R rriegel Member Joined Oct 2, 2012 Messages 12 Programming Experience 10+ Nov 7, 2012 #2 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 Upvote 0 Downvote
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
J JonathanP Member Joined Nov 7, 2012 Messages 8 Programming Experience Beginner Nov 9, 2012 #3 That works Thanks Upvote 0 Downvote