Thumbs up

I'm having issues with this code, I want to put thumbs upon at the end of my code, this is what I have. But I keep geting errors like this,
Class "std::basic_string<char,std::char_traits<char>,std::allocator<char>>" has no member "open"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
}
	thumbs_up.open("Thumbs_up.txt");
	if (thumbs_up.is_open())
	{
		while (getline(thumbs_up, line))
		{
			cout << line << endl;
		}
		thumbs_up.close();
	}
	else
	{
	cout << "file not found.";
 }
 return 0;
	}
Last edited on
You must post enough code to reproduce the problem.
Never mind, I solved it haha.
Topic archived. No new replies allowed.