Writing/Reading Object Files To Disk

Is there an easy way to save objects to disk? In some languages, I can simply send an object to a file and read it back with built-in functionality.

[code]var myObj as myClass
myObj.x = 10
myObj.y = 12
myObj.Name = “Asteroid”
myObj.Velocity = vector( 1, 7, 0 )

WriteObjectToFile(myObj, filename)
myObj = ReadObjectFromFile( filename )
[/code]

Something like that?

Not built in, but it can be done. I have a github archive that can serve as an example.

https://github.com/ktekinay/Data-Serialization

[quote=482808:@Kem Tekinay]Not built in, but it can be done. I have a github archive that can serve as an example.

https://github.com/ktekinay/Data-Serialization[/quote]

Nice! Thank you!