© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•6mo ago•
8 replies
MTMB

✅ How can I save a single string when my program closes?

In my program I've got a file browser, and I'd like to make it so when you open the file dialogue it starts at the previously selected path. In my testing it's been quite annoying having to go to the same path over and over again.

The only method of saving the path that I can think of is writing it to a text file, but that sounds like a bit of a waste just for a single string. Have I got any other options?
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

My program closes after I run a foreach code. [Answered]
C#CC# / help
4y ago
Console auto closes instantly when i run the program
C#CC# / help
16mo ago
❔ How can I share my program with my friends?
C#CC# / help
3y ago