UCL-COMP0233-2023-2024 / RSE-Classwork

3 stars 65 forks source link

Reading and writing structured data files #12

Open dpshelio opened 1 year ago

dpshelio commented 1 year 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 (#9). 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.