+ 2
how to read strings from text file?
i am making a program for matching strings entered by the program and the method of fin.getline()is not working in my way.
3 ответов
0
I'd have to see the code to be sure it isn't something else.
0
fin is the input stream object
- 1
Assuming fin is the name of the file, try getline(fin, str) where str is a variable that holds the input from the file.