I'll be having lot of files in a directory. I'll be just getting the file names using File.getName()
and log them to a log file. I presume, I don't need to close the file since I'm not doing any read/write operation in it.
Is this correct?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…