Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
Imports System.IO
|
||||
|
||||
Module Module1
|
||||
|
||||
Function LargeEarthquakes(filename As String, limit As Double) As IEnumerable(Of String())
|
||||
Return From line In File.ReadLines(filename)
|
||||
Let parts = line.Split(CType(Nothing, Char()), StringSplitOptions.RemoveEmptyEntries)
|
||||
Where Double.Parse(parts(2)) > limit
|
||||
Select parts
|
||||
End Function
|
||||
|
||||
Sub Main()
|
||||
For Each earthquake In LargeEarthquakes("data.txt", 6)
|
||||
Console.WriteLine(String.Join(" ", earthquake))
|
||||
Next
|
||||
End Sub
|
||||
|
||||
End Module
|
||||
Loading…
Add table
Add a link
Reference in a new issue