I wanna to write results of some calculation into a text file and then at the end, read them from text file and do some other calculation. But my code has an error in the line that i wanna to read text file, the error is for getline. This is a section of my code. data is an array that i read from another text file.