C++ Beginner simple fstream question

Joined
Oct 4, 2009
Messages
1
Reaction score
0
Points
1
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");
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top