Computing.Net > Forums > Programming > using C visual C++ program

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

using C visual C++ program

Reply to Message Icon

Name: kelly
Date: May 9, 2002 at 15:12:13 Pacific
Comment:

Hi i posted this problem before but i didn't explain myself very well. My main problem is that i need to read two seperate files into a data store they are set out like this:
Jeff Jones
19
male
single
I need to treat each line seperartly so ideally i would store them into seperate stores, but i have thought of using an array but i can't get either idea to work as i can't find any examples that do this if any could knows anything that would help
please reply||
cheers kelly
bye the way sorry about the fact i know hardly anything i am new to all this!!!!



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: May 9, 2002 at 21:36:47 Pacific
Reply:

Sounds easy enough, except that I'm not sure what you mean be a 'data store'. By 'data store' are you speaking about variables (ie character arrays, integer variables etc)? Or by data store are you talking about a database.

Also, you say that you need to read two seperate files? Do both files have the format of your example?

You can email me direct if you'd like.


0

Response Number 2
Name: Jim
Date: May 9, 2002 at 21:47:01 Pacific
Reply:

This sounds like a pretty easy thing to do with a listbox. I'm not sure how to do that in Visual C++, but in Borland Builder C++ there's a listbox method that will read a file into the listbox. All you gotta do is supply the name (and path) of the file, and it will do all the hard work for you.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Data Environment...???? I will repeat myself. OCX...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: using C visual C++ program

qns on c programing? www.computing.net/answers/programming/qns-on-c-programing/7010.html

Wait State C Programming www.computing.net/answers/programming/wait-state-c-programming/819.html

C program developed on visual C++, Versi www.computing.net/answers/programming/c-program-developed-on-visual-c-versi/1005.html