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

C / C++ / MFC

 
GeneralRe: How to get IMAGE_OPTIONAL_HEADER of a running process? Pin
hwnd2-Jun-02 4:16
hwnd2-Jun-02 4:16 
GeneralRe: How to get IMAGE_OPTIONAL_HEADER of a running process? Pin
Rama Krishna Vavilala2-Jun-02 4:20
Rama Krishna Vavilala2-Jun-02 4:20 
GeneralFont in CStatic control Pin
Haakon S.2-Jun-02 1:45
Haakon S.2-Jun-02 1:45 
GeneralRe: Font in CStatic control Pin
l a u r e n2-Jun-02 2:52
l a u r e n2-Jun-02 2:52 
GeneralRe: Font in CStatic control Pin
Haakon S.2-Jun-02 6:59
Haakon S.2-Jun-02 6:59 
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 
Hi.


I'm trying to create a function which would load text into a array.

Like

Text[100][100]


I'm making a kind of phonebook, char Text[will hold the name][will hold the phone number]

I'm trying to create a function which will scan a text file and place the name of a person and the phone number of a person in the Array.

Ex:

text.txt

name: blah 1 phone: numbers 1
name: blah 2 phone: numbers 2
name: blah 3 phone: numbers 3
name: blah 4 phone: numbers 4

The function should scan the file, and add the name to the first part of the array, and the phone number to the last part of the array..


How could I do this?
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 
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 

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.