Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > Visual C++
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 4th, 2005, 09:42 AM
Registered User
 
Join Date: Nov 2005
Location: Cochin, Kerala, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default file opening

I did this to open a file and display its contents in a win32 console app
CString line;
CStdioFile fp;
fp.Open("employee.dat",CFile::modeRead);
while (fp.ReadString(line))
{
    printf(line);
}

But i get an error message:
"debug assertion failed"

What is wrong?

I am a newbie and i got this code from a book
Please help me

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening file 80240210 Flash (all versions) 0 July 24th, 2007 06:08 PM
Opening a file scoobie Pro Java 1 August 10th, 2006 02:30 PM
Opening Excel file p2pMember ASP.NET 1.0 and 1.1 Professional 1 January 21st, 2006 12:54 PM
file opening silver_cuts Classic ASP Basics 3 June 29th, 2004 01:57 AM



All times are GMT -4. The time now is 01:54 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.