Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   C#: How to save/load text? (https://www.warriorforum.com/programming/701990-c-how-save-load-text.html)

Edwin Torres 26th October 2012 08:30 PM

C#: How to save/load text?
 
Hey

I am working on a new software that lets you load your blogs.

I want it so when I select the blog, it'll populate into the text boxes that will appear the settings that the user inputted previously (for example can be the site name, URL, etc)

How can I do this so it can save and load the text to the text boxes in C#?

KirkMcD 27th October 2012 06:04 AM

Re: C#: How to save/load text?
 
Quote:

Originally Posted by Edwin Torres (Post 7243433)
How can I do this so it can save and load the text to the text boxes in C#?

Have you never programmed before?
Save to a file or a database and read them back.

Edwin Torres 27th October 2012 08:35 AM

Re: C#: How to save/load text?
 
Quote:

Originally Posted by KirkMcD (Post 7244929)
Have you never programmed before?
Save to a file or a database and read them back.


I have to save it to a database? What if the program will have millions of user, thats hosting space I take up.

cgimaster 27th October 2012 07:01 PM

Re: C#: How to save/load text?
 
Quote:

I want it so when I select the blog, it'll populate into the text boxes that will appear the settings that the user inputted previously (for example can be the site name, URL, etc)
I am a bit confused, are you saying you just want to save the same settings they are using on their blog configuration so that they can see it late ?

If so you could use SQLite as a NOSQL database which will handle million recrods just fine to save/read the data, however your explainnation is a bit confused and I am unsure of your goal here, perhaps if you could be a bit more clear I could point out a better way to it.

You could save to a simple file or serialize it to xml as well.

muddywaters 29th October 2012 12:34 AM

Re: C#: How to save/load text?
 
If you could be more elaborate of what it is that you need, I would love to help.

Edwin Torres 29th October 2012 05:59 AM

Re: C#: How to save/load text?
 
I ended up using an INI class.


All times are GMT -6. The time now is 11:45 PM.