File class to read and write stories from and to files.
Is your feature related to a problem? Please describe.
Need to be able to create a file which contains information about a story. The program should interpret this file and create a story object from it. Information in the file needs to be the following: Title and list of passages where each passage will have information about its title, description and a list of links where each link also has information about its name, reference and list of actions which contain action type and value.
It should be possible to both read and write to this format.
Describe the solution you'd like.
The file shall be a text file in the following format:
Story title
::Passage title
Content that can
be on multiple lines
[Link name](reference)[{Action type}(value){Action 2 type}(value)]
...
The filepath is.paths
. Do not use a filechooser in the file handler class.
Create one class for reading and another for writing.
Have a robust method for retrieving text between two characters like []
, {}
or ()
.