How do I save an array variable's value even after the program has been shut?

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Dec 2008
Posts: 29
Reputation: vandenzergen is an unknown quantity at this point 
Solved Threads: 0
vandenzergen's Avatar
vandenzergen vandenzergen is offline Offline
Light Poster

How do I save an array variable's value even after the program has been shut?

 
0
  #1
Jan 14th, 2009
Hello everyone, I'm still having a problem about saving the data values of an array variable or any variable. You know, every time we run a program the values of the variables can change anytime by means of looping or other inputs that a user might do.

All I want to do is save the very last data values that has been inputted in the program. Each time a program is open and then closed, and then reopened, all the changes that has been made in all the variables in the program will get back to zero as if it was the first time you open it.

I hope I could find direct answers from all of you soon. I hope I could get some very simple sample source codes from all of you regarding this matter so that I could try to see the very direct answer that you might give and so that I could understand what you really mean even more. Seeing an example makes us understand deeply and thoroughly, right? Thank you very much...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #2
Jan 14th, 2009
Ok, so you clearly defined what you want.. But you dont seem to have tried anything at all..

What options have you read about, considered, tried to code? What happened?
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,958
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 284
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #3
Jan 14th, 2009
Try to get some notions on object serialization
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #4
Jan 14th, 2009
Does this site help you enough

http://www.perlmonks.org/?node_id=477517
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 1,958
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 284
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Posting Virtuoso

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #5
Jan 14th, 2009
Perl? OK with me, but looks a bit wierd on a C# forum...
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #6
Jan 14th, 2009
lol - wrong page . . I'll get the correct one

http://lisa.uni-mb.si/osebje/bonacic...ion_CSharp.htm

That's what I meant to post a link for . ..
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #7
Jan 14th, 2009
LOL, Rapture, Concentrate! and thank Dany!
Good Dany (Y) serialization fits him
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 29
Reputation: vandenzergen is an unknown quantity at this point 
Solved Threads: 0
vandenzergen's Avatar
vandenzergen vandenzergen is offline Offline
Light Poster

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #8
Jan 15th, 2009
http://lisa.uni-mb.si/osebje/bonacic...ion_CSharp.htm but I have to read this first an apply it on a simple windows application. Now I have to read this with thorough and deep understanding, I hope I could understand this deeply oh my God... wish you could help me... but anyway thanks for this and I hope I could find another answers from other professionals tomorrow or soon... thank you very much...
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

Re: How do I save an array variable's value even after the program has been shut?

 
0
  #9
Jan 15th, 2009
Take a look at the serialization posts on the MSDN help pages, they give a good example, and its scaryingly easy.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC