L3GabeL4
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 808 |
|
|
| 15 Mar 2012 08:15 PM |
| how do I save the string so when you open the program back up the string is still there? |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
|
| 15 Mar 2012 08:19 PM |
| you gotta save it to a file |
|
|
| Report Abuse |
|
|
L3GabeL4
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 808 |
|
|
| 15 Mar 2012 08:21 PM |
| hooowww! I want it to make the stuff go back onto the program but the C++ wont work right. |
|
|
| Report Abuse |
|
|
L3GabeL4
|
  |
| Joined: 18 Feb 2012 |
| Total Posts: 808 |
|
|
| 15 Mar 2012 08:54 PM |
wait wait, I just realized C++ and CSharp are differenttt. sorry, how do I put C# stuff in to files?
"God created us, and he will end us" - eminem |
|
|
| Report Abuse |
|
|
myrkos
|
  |
| Joined: 06 Sep 2010 |
| Total Posts: 8072 |
|
| |
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 16 Mar 2012 04:38 PM |
System.IO.File.WriteAllText("data.txt", "gobwey");
That's the C# implementation. |
|
|
| Report Abuse |
|
|
|
| 16 Mar 2012 04:46 PM |
| eww shouldn't you use a stream? |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
|
| 16 Mar 2012 05:04 PM |
| Technically, he should be using the Windows Registry to save application settings/preferences. |
|
|
| Report Abuse |
|
|