File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes How do I close a 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 » Languages » Groovy
Bookmark "How do I close a file" Watch "How do I close a file" New topic
Author

How do I close a file

Eric Palmer
Greenhorn

Joined: Dec 15, 2010
Posts: 1
How do I close a file after writing to it. file.close() is not in the jdk



Thanks so much!

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Groovy handles the close for you. So no need to explicitly call it.


GenRocket - A Test Data Generation Platform
kritika das
Greenhorn

Joined: Jun 17, 2011
Posts: 10
Eric Palmer wrote: How do I close a file after writing to it. file.close() is not in the jdk



Thanks so much!




Yes, Gregg Bolinger is absolutely right. Groovy is responsible for all activity of file and handle it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do I close a file
 
Similar Threads
Advanced collection class
first JavaRanch question
PrintWriter does not write. Why?
frame close operations (GUI)
Save Dialog using JFIleChooser.