Click here to Skip to main content
16,013,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Font in CStatic control Pin
Haakon S.2-Jun-02 8:26
Haakon S.2-Jun-02 8:26 
GeneralAdding performance counters Pin
Dudi Avramov1-Jun-02 23:24
Dudi Avramov1-Jun-02 23:24 
GeneralFormating text from a .txt file Pin
1-Jun-02 22:42
suss1-Jun-02 22:42 
GeneralRe: Formating text from a .txt file Pin
Nish Nishant1-Jun-02 22:44
sitebuilderNish Nishant1-Jun-02 22:44 
GeneralRe: Formating text from a .txt file Pin
1-Jun-02 23:04
suss1-Jun-02 23:04 
GeneralRe: Formating text from a .txt file Pin
Nish Nishant1-Jun-02 23:21
sitebuilderNish Nishant1-Jun-02 23:21 
GeneralRe: Formating text from a .txt file Pin
1-Jun-02 23:59
suss1-Jun-02 23:59 
GeneralRe: Formating text from a .txt file Pin
Nish Nishant2-Jun-02 0:11
sitebuilderNish Nishant2-Jun-02 0:11 
Joan Yan wrote:
Nope, I do not use MFC..
Any other way?


OK. You can use fopen to open the file. Then use fgets to read line by line.
For each line you'll need to parse out your fields. If you were using some fixed separator like say a comma, you could use strtok. But here you'd have to do some manual work Frown | :-( You can use strchr and strstr.

Regards
Nish


Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.

GeneralRe: Formating text from a .txt file Pin
2-Jun-02 7:27
suss2-Jun-02 7:27 
Generalviews from menu Pin
ram9712311-Jun-02 21:45
ram9712311-Jun-02 21:45 
GeneralRe: views from menu Pin
Joel Holdsworth1-Jun-02 22:38
Joel Holdsworth1-Jun-02 22:38 
GeneralAnother Question Pin
Joel Holdsworth1-Jun-02 20:46
Joel Holdsworth1-Jun-02 20:46 
GeneralRe: Another Question Pin
Bugra Barin1-Jun-02 22:09
Bugra Barin1-Jun-02 22:09 
GeneralRe: Another Question Pin
Joel Holdsworth1-Jun-02 22:25
Joel Holdsworth1-Jun-02 22:25 
General"stdafx.h" Pin
WREY1-Jun-02 16:55
WREY1-Jun-02 16:55 
GeneralRe: "stdafx.h" Pin
Nish Nishant1-Jun-02 18:05
sitebuilderNish Nishant1-Jun-02 18:05 
GeneralRe: "stdafx.h" Pin
WREY1-Jun-02 20:39
WREY1-Jun-02 20:39 
GeneralRe: "stdafx.h" Pin
Joel Holdsworth1-Jun-02 21:04
Joel Holdsworth1-Jun-02 21:04 
GeneralRe: "stdafx.h" Pin
WREY1-Jun-02 21:43
WREY1-Jun-02 21:43 
GeneralRe: "stdafx.h" Pin
Brian Delahunty2-Jun-02 4:59
Brian Delahunty2-Jun-02 4:59 
GeneralAnimateWindow(), problem Pin
MaTrIX2k21-Jun-02 11:16
MaTrIX2k21-Jun-02 11:16 
GeneralRe: AnimateWindow(), problem Pin
Paul M Watt1-Jun-02 18:09
mentorPaul M Watt1-Jun-02 18:09 
GeneralRe: AnimateWindow(), problem Pin
MaTrIX2k21-Jun-02 18:49
MaTrIX2k21-Jun-02 18:49 
GeneralDetecting connections... Pin
einst9921-Jun-02 10:30
einst9921-Jun-02 10:30 
GeneralRe: Detecting connections... Pin
Rama Krishna Vavilala1-Jun-02 12:19
Rama Krishna Vavilala1-Jun-02 12:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.