import strutils, tables const NumFields = 49 const DateField = 0 const FlagGoodValue = 1 var badRecords: int # Number of records that have invalid formatted values. var totalRecords: int # Total number of records in the file. var badInstruments: int # Total number of records that have at least one instrument showing error. var seenDates: Table[string, bool] # Table to keep track of what dates we have seen. proc checkFloats(floats: seq[string]): bool = ## Ensure we can parse all records as floats (except the date stamp). for index in 1..