Hi everybody,
I'm trying to direct my fstream to the console for debugging purposes. I'm using ifstream infile("con") and ofstream outfile("con") which don't work. Can anyone help?? (Someone told me that "con" may work for PC and not for Mac)
ifstream infile("/Users/kenya/Desktop/prog3in.txt");
// ifstream infile ("con");
ofstream outfile("/Users/kenya/Desktop/prog3out.txt");
// ofstream outfile("con");
I'm trying to direct my fstream to the console for debugging purposes. I'm using ifstream infile("con") and ofstream outfile("con") which don't work. Can anyone help?? (Someone told me that "con" may work for PC and not for Mac)
ifstream infile("/Users/kenya/Desktop/prog3in.txt");
// ifstream infile ("con");
ofstream outfile("/Users/kenya/Desktop/prog3out.txt");
// ofstream outfile("con");