you created a windows program not a console program. The simplest fix to that problem is to start all over again, but this time when you get to the Application Settings window choose Console Application
[edit] what WolfPack wrote -- I didn't see it when I wrote this [/edit]
About the code you posted: If the file failed to open you can't write an error message to it. You probably want to use cout instead of the file handle that failed to open.
Last edited by Ancient Dragon; Sep 4th, 2007 at 9:26 am.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Online 21,951 posts
since Aug 2005