Question: visual basic Each Line of the file UN . txt contains four pieces of information ( name , continent, population in millions, area ) about

visual basic Each Line of the file UN.txt contains four pieces of information (name, continent, population in millions, area) about one of the 193 member countries of the United Nations. The first two lines of the file are Afghanistan,Asia,31.8,251772 Albania,Europe,3.0,11100 What is the first line of the file created by the following code?
Dim query = From line In IO.File.ReadAllLines("UN.txt")
Let data = line.Split(","c)
Let country = data(0)
Let population =1000000* CDbl(data(2))
Select country & "," & population
IO.File.WriteAllLines("NewFile.txt", query)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!