-
Having file i/o trouble
Code:
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
using std::cout;
using std::cin;
using std::ifstream;
using std::ofstream;
using std::ios;
. . .
ifstream list1("list1.txt", ios::nocreate);
I'm getting this error:
Code:
18 C:\Dev-Cpp\mp3.cpp `nocreate' is not a member of type `std::basic_ios<char,
I don't understand what's wrong. Last I checked, ios::nocreate worked fine. Sorry--I searched around, and couldn't find anything. Thanks in advance.
-
Check out the last post in this thread.