I am reading data from a text file into a program. I am well aware of the subtle distinctions in the mode of data input/entry when using the stream extraction operator, the get() function, and the getline() function. My problem is that all of them do not read and/or store the newline character alongside the data read!
Does anyone know a function that reads and stores data and the terminating newline character together?? Thank you.