Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Ranch Hand
Posts: 15304
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