This content has been marked as final. Show 3 replies
> I have loaded the text into Director using fileIO but it loads:
> "["course": "history", "lecturer":"Mr Surname", "room": "G100", "day":
> Monday, " time":"12-2pm"]"
> How can I convert that into just the property list so I can start
> extracting stuff from it.
You use the value() function:
tList = value(aListAsString)
Thanks Sean. All working now.
I've got the loading working, now just have to get the saving working.
you can look into propsave.X32. This is an xtra that reads/writes binary
data instead of strings. No need to do the value() conversion.
About the saving of data for just onde day, I wouldn't worry about the
overhead that comes with saving the rest of the week with it.
But OTTOMH you can use setPosition() or something similar (type: put
Xtra("Fileio").new.interface() in the messagewindow) to define a
position to start writing. Risk is that data for tuesday is suddenly
longer than it used to be and you'll overwrite data of wednesday...
> Thanks Sean. All working now.
> I've got the loading working, now just have to get the saving working.