In weather.dat there are data with meteorological surveys. The first column contains the day of the month, while the second and the third contain respectively the temperature maximum and minimum for that day. Write a program that, given the input file, returns the day with the smallest temperature range.
this is the link of a the data displayed in Atom:

The file that contains these data has a .dat extension, I have never used it so far so I don't even know how should I retrieve these data in my script! (should I rewrite them directly in the arrays?)
Please help!
In general files are separated into txt and binary files so extracting data is general for these two file types. File extensions are often used just for clarification.
How to extract data from a txt(.dat) file
Javascript file reader
As well idea for the given task: