Reads a txt file having a table and returns an array of obects. In which each object consists of all headers as keys and there data as values.