On line 15 we create a file stream object and then assign the memory file on line 16. Notice the ios::in argument. This means that we want to open the file for input, i.e. to read the file.
On line 15 we create a file stream object and then assign the memory file on line16. Notice the ios::in argument. This means that we want to open the file forinput, i.e. to read the file.