❔ I have a project and I need to implement a functionality to create a membership for users
I need help with using exporting & importing data in a text file in a my console application project



"Hello World!!"string, I could write the users data and store in a text file in the program.
user membership
"Hello World!!"user membershippublic string FirstName { get; }
public string LastName { get; }
public int Age { get; }
public string EmailAddress { get; }
public string HomeAddress { get; }
public string PhoneNumber { get; }
public string Id { get; }namespace HockeyArenaSytem
{
public class Membership
{
public string FirstName { get; }
public string LastName { get; }
public int Age { get; }
public string EmailAddress { get; }
public string HomeAddress { get; }
public string PhoneNumber { get; }
public string Id { get; }
public Membership(string firstname, string lastname, string emailaddress, string homeaddress, string phonenumber, string id)
{
/*ArgumentException.ThrowIfNullOrEmpty(FirstName);
ArgumentException.ThrowIfNullOrEmpty(LastName);
ArgumentException.ThrowIfNullOrEmpty(EmailAddress);
ArgumentException.ThrowIfNullOrEmpty(HomeAddress);
ArgumentException.ThrowIfNullOrEmpty(PhoneNumber);*/
FirstName = firstname;
LastName = lastname;
EmailAddress = emailaddress;
HomeAddress = homeaddress;
PhoneNumber = phonenumber;
Id = id;
}