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()
Dim totalLine As String = lines.FirstOrDefault(Function(l) l.Split(","c)(0) = GTIN)
If Not String.IsNullOrWhiteSpace(totalLine) Then
Console.WriteLine("Total: " & (Convert.ToDouble(totalLine.Split(","c)(2)) * amount))
Console.WriteLine("Hello World")