File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
pls consider this program i don't know how h value is incremented in Label1:
Not able to write the whole content
Switch/Label
Just Java 2 clock class help required (Resolved)
break and contine in blocks