?
Solved

CFile

Posted on 2000-05-09
1
Medium Priority
?
341 Views
Last Modified: 2013-11-20
just i want  read the content of the file(using CFile),whenever find \n store the string into new variable or array element.How can i do it? any help please.any Example??.My goal is to read from file and insert into CTreeCtrl as tree item. Any examples??
0
Comment
Question by:yesnathan
1 Comment
 
LVL 3

Accepted Solution

by:
Shay050799 earned 20 total points
ID: 2794041
use CStdioString

CStdioString strFile,strFromFile;
strFile.ReadString(strFromFile);

this will read the entire line i.e untill it reaches the \n..

shay
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question