• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem in file creation

 
s.palanivel rajan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am a java beginner... I am doing a small standalone application.. In which i am using files..
In my code i want to get customer details and to store it in a file..i am using following code for doing that...



But while using this code..for each execution one file is created and details getting added and in next execution the old file is deleted along with the details....but i need one file is to be created and only details to be added in each execution...help me please....
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the various constructors available for java.io.FileOutputStream. You'll find what you want.
 
s.palanivel rajan
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANK YOU JOE.................

I GOT IT.....................
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!