# Functions
GetSavedConnections retrieves all saved connection configurations from the configuration file.
NewConnectionConfig creates a new ConnectionHistory object with the provided key and connection data.
ReadFromFile reads a ConnectionHistory object from the configuration file based on the provided key.
WriteToFile appends a ConnectionHistory object to a JSON file for persistent storage, ensuring that the file maintains an array of JSON objects.
# Structs
ConnectionHistory represents an object for storing connection information in a file.