Reading from file in c++ ifstream
What the inFile >> S does is take in the file stream, which is the data in you file, and uses a space delimiter (breaks it up by whitespace) and puts the contents in the variable S. For example: If we had a file that had the follow contents and we used inFile >> S with our file: we … Read more