Ok so I have this problem. For some reason whenever I read a file in Linux. It has an extra carriage return at the end of the line. This is causing errors in my program. So I would like to know how would I test for the end of line condition whilst extracting doubles from each line
fin >> variable
The file is formated like this
1
2
3
4
5
Even with the extra carriage return, this loop should work: