Reading input from a file

Just a random thought, lets say I want to divide a long story up into episodes, can I have one episode write some values to a file, then the next episode read those values, so as to have the player’s choices remain consistant between episodes?

Yes you can, see chapter 22, section 10 and following.