read and write a file using multiple objects

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
Try XML...its great once you get the hang of it.
I know XML... If you need help with anything just ask :)
Last edited on
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
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
someone please help me with the code.....


How can we? You haven't posted any.
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
Topic archived. No new replies allowed.