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
Register / Login
JavaRanch » Java Forums » Other Languages » Groovy
Reply 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
Sheriff

Joined: Jul 11, 2001
Posts: 15040

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


My Blog | DZone Articles
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.
 
 
subject: How do I close a file
 
Threads others viewed
first JavaRanch question
frame close operations (GUI)
PrintWriter does not write. Why?
Advanced collection class
Save Dialog using JFIleChooser.
MyEclipse, The Clear Choice