Reading/Writing a preference file with a AS

Hey all! I need to read and then store data as preferences for a AppleScript I’m writing. I though I could just put that in a text file, put it would look better in a preference file. I just need to store bytes, like 1 or 0 couple times for saying if a preference is on or off. How do I do this? Thanks. Link to the page of the script below.