I learning c++, started learning File Handling today. but getting a error when runinng this code
#include <iostream>
#include <fstream.h>
using namespace std;
int main()
{
fstream file;
file.open("test.txt",ios::in|ios::out)
file.close();
return 0;
}
Gets error
Cannot open include file: 'fstream.h': No such file or directory
Whats Wrong?