Save/Load Boolean to disk using ReadLine/WriteLine?

Hey all,

I have a Boolean called soundsdisabled i’m wanting to write to disk using WriteLine and read back using ReadLine? Is there a direct and easy way to do this? I tried Str/CStr and all of that and it gives me errors.


writeline str(soundsdisabled)

soundsdisabled = readline() = “true”

If you use a binaryStream instead of a textinputstream, which you probably should be doing anyway if you’re writing more than just plain text, there are .readBoolean and .writeBoolean properties

Thanks, Norman! Your code worked great.