If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

File comparison and database update basics

I am new to Visual C++ windows form application development. I am doing a task where I need some serious help regarding the coding or even can guide me some references. I have made forms and added all the necessary controls.

tasks:

I have an input file (*.txt) and a database (*.txt).

for eg:##

input file:

##########
Hi this is my input file
#############
List of students
############

Leonard
Age:32

Sheldon Cooper
Age:45

Leonard
Place:New Jersey

Sheldon Cooper
Place: New York

###############
This is the end of the file

eg for Database:

Leonard
Age:30

Raj K
Age:22

Leonard
Place:Toronto

Raj K
Place: Delhi

########

So what I need to do here is to edit this input file automatically and insert the correct 'Age' and 'Place' of the students as given in the database.

If a student is not present in the database. Pop up a window and show the list of students with the parameters 'Age' and 'Place' so that I can edit it from there. Once I edit it, these new students have to be added to the Database in the same format as the others with the edited value of parameters.

So,

#What sort of search should I have to do to find the 'name' match between the input and that in the database?

# Someone could provide me a sample example somewhat related to it?

It would be of real help. I use Visual C++ 2010 Express for this task.