UCL-COMP0233-24-25 / RSE-Classwork

6 stars 85 forks source link

Reading and writing structured data files #8

Open dpshelio opened 1 month ago

dpshelio commented 1 month ago

The purpose of this exercise is to check that you are able to read and write files in commonly-used formats.

Make sure you have read the course notes on structured data files first!

For this exercise, you will work with the code you wrote to represent a group of friends during the last lesson (#5). If you prefer, you can use the sample solution instead of yours, especially if you have used a custom class in your solution.

You can use either JSON or YAML for this exercise - the choice is up to you.

Write some code to save your group to a file in the format of your choice (JSON or YAML). Make sure you can read the file by loading its contents. Is the result identical to the original structure?

If you have questions or run into problems, leave a message on the Q&A forum on Moodle.