object serialization

may i get a simple example of object serialization and deserialization?for eg-i want to write data of 5 students in a same txt document using file handling and extract data of any one of them as per users choice.
Topic archived. No new replies allowed.