I need a method that will be able to load the following from a text file and turn them into Book objects:
Harbour:John Lindqvist:horror:2006
Northern Lightshilip Pullman:fantasy:1998
City of Lost Souls:Cassandra Clare:fantasy:2012
Robinson Crusoeaniel Defoe:adventure:1719
The book object has the parameters - String title - String author - String genre - int year(in that order). I can read and save if the title, author and genre are one word each, but I can't work out how to read them if the Strings contain spaces, let alone read the file separating each parameter with the ":".
Can anyone at least let me know which API I should be using to read objects saved in this format.
An example method would be amazing, but I understand if that's too lazy of me. I'm new to this forum.
Thanks heap!!!!