read and write a file using multiple objects

Ritu15 (5)
I want to read and write a file having multiple records. Each record has to be accessed by an object,hence the requirement of multiple objects in cpp.
Last edited on
Ben Brown (25)
Try XML...its great once you get the hang of it.
Jackson Marie (456)
I know XML... If you need help with anything just ask :)
Last edited on
Ritu15 (5)
There is text file containing number of records. I have to read from the file using the concept of class and objects in cpp. I want to create 1 object for each record. similarly I want to write into the file.
For example the text file contains
ritu|23|165|ase|yuh|iok|iuy
chandan|34|56|gt|tfg|fgg|tgh
Ritu15 (5)
someone please help me with the code.....


There is text file containing number of records. I have to read from the file using the concept of class and objects in cpp. I want to create 1 object for each record. similarly I want to write into the file.
For example the text file contains
ritu|23|165|ase|yuh|iok|iuy
chandan|34|56|gt|tfg|fgg|tgh
MikeyBoy (175)
someone please help me with the code.....


How can we? You haven't posted any.
Ritu15 (5)
i dont know the code how to write......please tell in the entire code which give me the perfect output...
ritu|23|165|ase|yuh|iok|iuy
chandan|34|56|gt|tfg|fgg|tgh



thanks in advance
Registered users can post here. Sign in or register to post.