example: Save variables into file and read them back [advanced]
-
Thanks for answering I want to save a bool variable
When I compile I get an error and a warning
Could you help me by seeing what I'm doing wrong, I would really appreciate it.https://fxdreema.com/shared/D0D5rXhgb

-
@jstap Hi you suggested to create type bool. Did you mean create variable bool in fxdreema? and then save it as string in file? This gives - error cannot implicitly convert type 'string' to 'bool'. Could you please clarify - currently this is being used:
xyz= strArr[0]; , what would be the right way to save a bool? -
You are confusing things,
bool = true/false
string = text -
@jstap I have some bool values in fxdreema that i want to save. Instead of strArr[0] that stores string, what could we use to store bool?
-
bool as a 0 or 1 so int can be used
-
@jstap Great thank you. (int)strArr[0]; seems to work.
No compile error anymore -
