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.
Thanks!
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.
Thanks!
write
writeline str(soundsdisabled)
read
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.