Solved

CFile

Posted on 2000-05-09
1
332 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 10 total points
Comment Utility
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hibernate methods 2 58
Smart Camera scanning and reading information 3 86
FizzBuzz challenge 9 71
scoreUp challenge 14 47
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now