You are on page 1of 1

Dim nm As IO.

StreamWriter
nm = IO.File.AppendText("D:\CARSALES1.TXT")
Dim carreg As String
Dim veb As Char = "y"
Do
Console.WriteLine("Enter car registrati
on and sales date")
carreg = Console.ReadLine
nm.WriteLine(carreg)
Console.WriteLine("Do you want to conti
nue adding?")
veb = Console.ReadLine
Loop Until veb <> "y"
fp.Close()

You might also like