I am having trouble using fstream in a very simple code here it is :
#include <iostream>
#include <fstream>
#include <string>
using namespace std;
int main() {
string line;
fstream file;
file.open("taches.txt", ios::in);
return 0;
}
Problem is Eclipse is giving Method 'open' could not be resolved but since I included fstreams and iostream I am baffle. Can soemone point out what I am doing wrong?