I am writing a boolean variable to a file and I later need to read it into a boolean variable. I first tried writing "TRUE" or "FALSE" to a file and read it into a boolean variable, but I did not have any luck. I am now writing a "1" for true or a "2" for false to the file. I read this into the boolean variable, but it doesn't seem to working either.
So, I am trying to use the CBool function that I have found, but have been unsuccessful. Does anyone know how to use it or have another idea. Some example code is desired.