• Post Reply Bookmark Topic Watch Topic
  • New Topic

free a csv file without closing the java program?

 
Nikos Stavros
Ranch Hand
Posts: 243
Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a program that opens a csv file. While the program is running I can't modify the csv file because the windows operating system says that the file is in use (in the java program). How can I free it without closing the java program?
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24213
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just close the file. Call close() on any FileReaders or FileWriters (or similar) that you've created once you're done with them.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!