aspose file tools*
The moose likes Java in General and the fly likes howto continue write file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "howto continue write file " Watch "howto continue write file " New topic
Author

howto continue write file

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
hi, i have following code which function as file writer, my problem is how to i continue write the file which is already exist ?




[ October 08, 2004: Message edited by: Alvin chew ]
Steve Deadsea
Ranch Hand

Joined: Dec 03, 2001
Posts: 125
Use the append parameter to the FileWriter constructor:
new FileWriter(path + "\\"+ navbarindex, true)
Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
i have few html layout which i will use different methods to generate different code for each of the layout, as show above, i use one of the method generate layout code which is navBarLayout1() and then pass the code to navBarContentGen(String content) method to write the file, but my problem is, it only write the last case which is case 3 in my switch case ..and it support print all cases's string to file

what i suspect is may be because of file close and open problem ..is there anyone have idea on it ? thank you very much for viewing and answering !!
[ October 08, 2004: Message edited by: Alvin chew ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: howto continue write file