IO.File.WriteAllLines("test.txt", {"34512340,plain brackets,0.50", "56756777,100mm bolts,0.20", "90673412,L-shaped brackets,1.20"})
Dim lines() As String = IO.File.ReadAllLines("test.txt")
Dim amount As Double = -1
Console.Write("Amount: ")
If Not Double.TryParse(Console.ReadLine, amount) OrElse amount < 0 Then
Console.WriteLine("Please enter a valid greater than or equal to 0.")
Dim GTIN As String = Console.ReadLine()
For Each line As String In lines
Dim splits() As String = line.Split(","c)
Dim value As Double = Convert.ToDouble(splits(2))
Console.WriteLine("Total: " & (value * amount))
Console.WriteLine("Hello World")