© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
Immusama

❔ How do I store data properly?

So I'm streaming on Twitch and I have a program called Streamer.Bot which allows me to use C# to execute code.

I have a very basic and limited understanding about C# and coding in general ~ what I'm trying to do is store my viewers data in specific categories I define myself.

The main problem I'm having is understanding how to store the acquired data into a file (I haven't figured out another way yet, either .txt, .csv or .ini).

An example how I'm imagining it:

.ini file is named after my viewer's username in a folder with all the others:

[section1]
key1="value"
key2="value"

[section2]
key1="value"
key2="value"
[section1]
key1="value"
key2="value"

[section2]
key1="value"
key2="value"

I wanna be able to read it and override specific keys if I so desire. (Most of it is automatic)

To sum it up, I know how to write it into a file but I don't know how to format it properly and check for specific sections and key+values and override them.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to store data?
C#CC# / help
3y ago
How do I properly set up TcpClient
C#CC# / help
12mo ago
How do I properly use DI `.AddLogging`?
C#CC# / help
4y ago
❔ How to store session data backend?
C#CC# / help
4y ago