I need help writing, saving, and then reading data from a .dat file for a Lab. Please note that I\'m a beginner so please correct me if I did anything wrong.
The code