# Reconstructing objects from text files?

**URL:** <https://forum.kirupa.com/t/reconstructing-objects-from-text-files/285671>\
**Category:** programming\
**Created:** [April 3, 2009, 6:01pm UTC](https://forum.kirupa.com/t/reconstructing-objects-from-text-files/285671 "2009-04-03T18:01:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason116](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@jason116](https://forum.kirupa.com/u/jason116)\
**Post date:** [April 3, 2009, 6:01pm UTC](https://forum.kirupa.com/t/reconstructing-objects-from-text-files/285671/1 "2009-04-03T18:01:25Z")

</div>

Hi,

Is there a good way to reconstruct an object from a text file?

I have a method which backs up a quiz object like so:

```auto

Quiz
0.4
1.9
Colour of trees is:
####
blue
red
orange
green
4
1.3
Colour of sea is:
####
blue
red
orange
green
1
1.3
Colour of sheep
####
blue
red
white
green
3

```

////EDIT: Problem sorted

Thanks
