• Post Reply Bookmark Topic Watch Topic
  • New Topic

About strems  RSS feed

 
zama syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can i store more than one value in files using streams?
for example if i store 65 and again executed and stored 66 the previous value is overwritten.
can't i store more than one value
 
fred rosenberger
lowercase baba
Bartender
Posts: 12563
49
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
of course you can store more than one value in a file. It's hard to advise you since we have no idea what or how you are doing things. Can you provide a code sample of what exactly you are doing?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please UseAMeaningfulSubjectLine. "Hi" is about as non-descriptive as it gets. You can edit your original post to change it.
 
Devaka Cooray
Marshal
Posts: 5649
765
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zama, please UseAMeaningfulSubjectLine instead of something like "Hi" when you post a question.
Please edit your post to add a meaningful subject line by clicking the button.

[Edit: Beaten by milliseconds ]
 
zama syed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

for this on each execution the txt file is overwritten.
is their any stream so that all the values wil be stored in there itself.
 
Anthony Andras
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zama,

Check out the following article as I believe it might help you.

http://www.devdaily.com/java/edu/qanda/pjqa00009.shtml



 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!