Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I close a file

 
Eric Palmer
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Groovy handles the close for you. So no need to explicitly call it.
 
kritika das
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic