View Single Post
Old 02-04-2013, 07:38 PM   PM User | #3
alykins
Senior Coder

 
alykins's Avatar
 
Join Date: Apr 2011
Posts: 1,608
Thanks: 37
Thanked 183 Times in 182 Posts
alykins will become famous soon enough
Also- I was reading that class (PrintWriter) documention and from my understanding it will always truncate the file. Also it will create the file if it does not exists (ie you can comment out your new File statement since you are not doing anything special with the File object before passing it to the printwriter)


Edit:
What I mean is that you will always be overwriting it so if you only write one player/score then there would only be 1 entry- so I would suggest in memory collection as Fou-Lu stated. But I could have misread that Class document as well
__________________

I code C hash-tag .Net
Reference: W3C W3CWiki .Net Lib
Validate: html CSS
Debug: Chrome FireFox IE
alykins is offline   Reply With Quote