I can’t use Settings because there’s an external file. Is there any way to embed settings or otherwise embed data within the executable?
I need to be able to launch the application and have data saved from within and not loaded elsewhere.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What kind of data are you talking about? A file of strings? A single String of text? If it’s a file, changing the “Build Action” property of the file to “Embedded Resource” will in fact embed the file.
If they are single strings, add a new file to your project, a Resources File (.resx), and mark that file as an “Embedded Resource”.
Here’s a similar question where there is code to show how to read a specific string: read string from .resx file in C#