Save bool data

Hello
I have a lot of boolean value, I want to save them in a folder, how can I do that?
Can you help me

If you are talking about a Unity3D-centric solution, using a ScriptableObject is a way to approach it:

using UnityEngine;
using System.Collections;

[CreateAssetMenu]
public class BooleanArrayScriptableObject : ScriptableObject
{
    // you can do it with specific flags
    public bool Flag1;
    public bool Flag2;

    // or you can do it as an array
    public bool[] Flags;
}

You can right-click and make as many of those assets as you want in your project.

You can also serialize pretty much any basic types in there in addition to booleans.

Yes I don’t write it, but I want to serialize, and I’m in 2D