GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 05-May-2005, 08:38
Sadia Sadia is offline
New Member
 
Join Date: May 2005
Posts: 4
Sadia is on a distinguished road

How to read a file and write its contents in a text window


I am beginner in MFC programming.Is there anybody who can tell me how to read a file and write its contents (simple text) in a text window created by using CEdit class.
  #2  
Old 06-May-2005, 01:10
aie0 aie0 is offline
Member
 
Join Date: Dec 2004
Posts: 246
aie0 is a jewel in the roughaie0 is a jewel in the rough
To write a context of a file use CFile class and to put the retrieved tect in the CEdit class use CEdit::SetWindowText( LPCTSTR lpszString );

Try to find some online books to cover the basics of MFC.
 
 

Recent GIDBlogHalfway done! by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Airport Log program using 3D linked List : problem reading from file batrsau C Programming Language 11 29-Feb-2008 07:44
How to detect end of file with read() function call? nkhambal C Programming Language 6 12-Oct-2004 01:08
CD burner wont burn!! robertli55 Computer Hardware Forum 1 18-Jun-2004 10:53
Yet another CD burner problem: Lite-On LSC-24082K Erwin Computer Hardware Forum 1 22-May-2004 11:28

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:56.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.